From 38233e713adf99d440c118bfb68c7f4005dba5a8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 29 Aug 2003 03:03:29 +0000 Subject: [PATCH] sanity check --- stepmania/src/RageDisplay_OGL.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index df7b349635..f11e90bd85 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -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(&uTexHandle)); ASSERT(uTexHandle);