mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-07-24 08:35:23 +02:00
Use correct color format in Bitmap::getRaw
This commit is contained in:
parent
d9175a86c2
commit
b9de95b65f
1 changed files with 1 additions and 1 deletions
|
@ -892,7 +892,7 @@ bool Bitmap::getRaw(void *output, int output_size)
|
|||
GUARD_MEGA;
|
||||
|
||||
FBO::bind(p->gl.fbo);
|
||||
glReadPixels(0,0,width(),height(),GL_BGRA,GL_UNSIGNED_BYTE,output);
|
||||
glReadPixels(0,0,width(),height(),GL_RGBA,GL_UNSIGNED_BYTE,output);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue