Support reversed buffer formats in the ge debugger.

So that it doesn't show garbage under the softgpu.
This commit is contained in:
Unknown W. Brackets committed 2013-11-17 02:14:34 -08:00
1 parent ce11fd7e4b
commit ac8edb4282
5 files changed
+40 -9

No files matched your search

+7
View File
@@ -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;