mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-26 01:50:36 +00:00
fix fixed
This commit is contained in:
parent
d2c22a857a
commit
638032c47c
@ -81,7 +81,6 @@ bool texture_data::loadTextureGL() {
|
|||||||
|
|
||||||
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, twidth, twidth, 0,
|
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, twidth, twidth, 0,
|
||||||
ISWEB ? GL_RGBA : GL_BGRA, GL_UNSIGNED_BYTE,
|
ISWEB ? GL_RGBA : GL_BGRA, GL_UNSIGNED_BYTE,
|
||||||
GL_BGRA, GL_UNSIGNED_BYTE,
|
|
||||||
&texture_pixels[0] );
|
&texture_pixels[0] );
|
||||||
|
|
||||||
if(ISWEB) for(auto& p: texture_pixels) swap(part(p, 0), part(p, 2));
|
if(ISWEB) for(auto& p: texture_pixels) swap(part(p, 0), part(p, 2));
|
||||||
|
Loading…
Reference in New Issue
Block a user