Commit 700f8221 authored by Sam Lantinga's avatar Sam Lantinga

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
parent 2eb56319
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment