Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed OpenGL state issue reported by Dmytro Bogovych
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 14, 2009
1 parent 9e11f77 commit 0d6fd7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CREDITS
Expand Up @@ -26,8 +26,8 @@ Thanks to everyone who made this possible, including:
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!
Expand Down
2 changes: 2 additions & 0 deletions src/video/SDL_renderer_gl.c
Expand Up @@ -846,6 +846,7 @@ GL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
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);
Expand Down Expand Up @@ -993,6 +994,7 @@ GL_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
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);
Expand Down

0 comments on commit 0d6fd7a

Please sign in to comment.