mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Flip the texture preview when it's a framebuffer.
This commit is contained in:
1 parent
8e4d7b304d
commit
a0d84d45cc
1 file changed
+1
-1
@@ -1562,7 +1562,7 @@ bool GLES_GPU::GetCurrentTexture(GPUDebugBuffer &buffer) {
|
||||
glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_WIDTH, &w);
|
||||
glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_HEIGHT, &h);
|
||||
|
||||
buffer.Allocate(w, h, GE_FORMAT_8888, false);
|
||||
buffer.Allocate(w, h, GE_FORMAT_8888, gstate_c.flipTexture);
|
||||
glPixelStorei(GL_PACK_ALIGNMENT, 4);
|
||||
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, buffer.GetData());
|
||||
|
||||
|
||||
Reference in new issue
Block a user