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

Commit

Permalink
The previous checkin fixes the crash, so at least we're not overrunning
Browse files Browse the repository at this point in the history
the texture pixel data anymore...
  • Loading branch information
slouken committed Dec 6, 2008
1 parent 472011e commit a3b15c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/SDL_renderer_gl.c
Expand Up @@ -746,7 +746,7 @@ GL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
GL_CLAMP_TO_EDGE);
renderdata->glTexParameteri(data->type, GL_TEXTURE_WRAP_T,
GL_CLAMP_TO_EDGE);
#if 0 //def __MACOSX__
#ifdef __MACOSX__
#ifndef GL_TEXTURE_STORAGE_HINT_APPLE
#define GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC
#endif
Expand Down Expand Up @@ -781,7 +781,7 @@ GL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
#endif
#endif
{
printf("teximage2d(%d,%d,%d,%d)\n", (int) texture_w, (int) texture_h);
printf("teximage2d(%d,%d)\n", (int) texture_w, (int) texture_h);
renderdata->glTexImage2D(data->type, 0, internalFormat, texture_w,
texture_h, 0, format, type, NULL);
}
Expand Down

0 comments on commit a3b15c4

Please sign in to comment.