# HG changeset patch # User Sam Lantinga # Date 1231915983 0 # Node ID 20d65430e63cc72e9bc721319279a8cada75a9f2 # Parent 62d4992e5a920bd73211a7871a10eb00ab846e79 Fixed OpenGL state issue reported by Dmytro Bogovych diff -r 62d4992e5a92 -r 20d65430e63c CREDITS --- a/CREDITS Wed Jan 14 04:25:32 2009 +0000 +++ b/CREDITS Wed Jan 14 06:53:03 2009 +0000 @@ -26,8 +26,8 @@ during the Google Summer of Code 2008 * Marty Leisner, Andrew, Will, Edgar Simo, Donny Viszneki, Andrea Mazzoleni, - and Couriersud for helping find SDL 1.3 bugs in the great SDL Bug Hunt - of January 2009! + Dmytro Bogovych, and Couriersud for helping find SDL 1.3 bugs in the great + SDL Bug Hunt of January 2009! * Donny Viszneki for helping fix SDL 1.3 bugs in the great SDL Bug Hunt of January 2009! diff -r 62d4992e5a92 -r 20d65430e63c src/video/SDL_renderer_gl.c --- a/src/video/SDL_renderer_gl.c Wed Jan 14 04:25:32 2009 +0000 +++ b/src/video/SDL_renderer_gl.c Wed Jan 14 06:53:03 2009 +0000 @@ -846,6 +846,7 @@ renderdata->glTexImage2D(data->type, 0, internalFormat, texture_w, texture_h, 0, format, type, NULL); } + renderdata->glDisable(data->type); result = renderdata->glGetError(); if (result != GL_NO_ERROR) { GL_SetError("glTexImage2D()", result); @@ -993,6 +994,7 @@ renderdata->glTexSubImage2D(data->type, 0, rect->x, rect->y, rect->w, rect->h, data->format, data->formattype, pixels); + renderdata->glDisable(data->type); result = renderdata->glGetError(); if (result != GL_NO_ERROR) { GL_SetError("glTexSubImage2D()", result);