Mercurial > sdl-ios-xcode
diff src/video/SDL_renderer_gl.c @ 3041:20d65430e63c
Fixed OpenGL state issue reported by Dmytro Bogovych
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 14 Jan 2009 06:53:03 +0000 |
parents | 8cc00819c8d6 |
children | 5d7ef5970073 |
line wrap: on
line diff
--- 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);