sanity check

This commit is contained in:
Glenn Maynard
2003-08-29 03:03:29 +00:00
parent 79b669d3bc
commit 38233e713a
+2
View File
@@ -1085,6 +1085,8 @@ unsigned RageDisplay_OGL::CreateTexture(
PixelFormat pixfmt,
SDL_Surface* img )
{
ASSERT( pixfmt < NUM_PIX_FORMATS );
unsigned int uTexHandle;
glGenTextures(1, reinterpret_cast<GLuint*>(&uTexHandle));
ASSERT(uTexHandle);