diff options
-rwxr-xr-x | render_sdl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/render_sdl.c b/render_sdl.c index 05a0948..422148f 100755 --- a/render_sdl.c +++ b/render_sdl.c @@ -1442,6 +1442,7 @@ void render_framebuffer_updated(uint8_t which, int width) width -= overscan_left[video_standard] + overscan_right[video_standard]; #ifndef DISABLE_OPENGL if (render_gl && which <= FRAMEBUFFER_EVEN) { + SDL_GL_MakeCurrent(main_window, main_context); glBindTexture(GL_TEXTURE_2D, textures[which]); glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, LINEBUF_SIZE, height, GL_BGRA, GL_UNSIGNED_BYTE, texture_buf + overscan_left[video_standard] + LINEBUF_SIZE * overscan_top[video_standard]); |