From 9faf641bbc50aa8092a2770e96b5015091591b0c Mon Sep 17 00:00:00 2001 From: Kyle K Date: Thu, 7 Oct 2010 22:49:38 -0500 Subject: misc corrections --- glut/pyramid.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'glut') diff --git a/glut/pyramid.c b/glut/pyramid.c index c7a7f45..9249b26 100644 --- a/glut/pyramid.c +++ b/glut/pyramid.c @@ -58,6 +58,8 @@ static void SetupRC() /* load texture */ glPixelStorei(GL_UNPACK_ALIGNMENT, 1); pBytes = gltLoadTGA("stone.tga", &iWidth, &iHeight, &iComponents, &eFormat); + if (!pBytes) + fprintf(stderr, "gltLoadTGA: failed to load texture!\n"); /* load texture image */ glTexImage2D(GL_TEXTURE_2D, 0, iComponents, iWidth, iHeight, 0, eFormat, -- cgit v1.2.3