all repos — mgba @ 56333d334442f7c7168b1416104c675e22b80405

mGBA Game Boy Advance Emulator

Use base rendering mode
Jeffrey Pfau jeffrey@endrift.com
Mon, 29 Apr 2013 21:12:56 -0700
commit

56333d334442f7c7168b1416104c675e22b80405

parent

7bb4d9d5ff96205d6ff468de0fd38647126b7f85

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/main.csrc/main.c

@@ -123,7 +123,7 @@ if (renderer->d.d.framesPending) {

renderer->d.d.framesPending = 0; pthread_mutex_unlock(&renderer->d.mutex); glBindTexture(GL_TEXTURE_2D, renderer->tex); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, 256, 256, 0, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8_REV, renderer->d.outputBuffer); + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 256, 256, 0, GL_RGBA, GL_UNSIGNED_BYTE, renderer->d.outputBuffer); glDrawArrays(GL_TRIANGLE_FAN, 0, 4); SDL_GL_SwapBuffers();