mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
Support reversed buffer formats in the ge debugger.
So that it doesn't show garbage under the softgpu.
This commit is contained in:
1 parent
ce11fd7e4b
commit
ac8edb4282
5 files changed
+40
-9
No files matched your search
@@ -224,6 +224,13 @@ void SimpleGLWindow::Draw(u8 *data, int w, int h, bool flipped, Format fmt) {
|
||||
} else if (fmt == FORMAT_565) {
|
||||
glfmt = GL_UNSIGNED_SHORT_5_6_5;
|
||||
components = GL_RGB;
|
||||
} else if (fmt == FORMAT_4444_REV) {
|
||||
glfmt = GL_UNSIGNED_SHORT_4_4_4_4_REV;
|
||||
} else if (fmt == FORMAT_5551_REV) {
|
||||
glfmt = GL_UNSIGNED_SHORT_1_5_5_5_REV;
|
||||
} else if (fmt == FORMAT_565_REV) {
|
||||
glfmt = GL_UNSIGNED_SHORT_5_6_5_REV;
|
||||
components = GL_RGB;
|
||||
} else if (fmt == FORMAT_16BIT) {
|
||||
glfmt = GL_UNSIGNED_SHORT;
|
||||
components = GL_RED;
|
||||
|
||||
Reference in new issue
Block a user