The previous checkin fixes the crash, so at least we're not overrunning
the texture pixel data anymore... --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403301
This commit is contained in:
parent
2eb5631950
commit
700f822150
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue