diff options
author | Kyle K <kylek389@gmail.com> | 2010-10-07 22:49:38 -0500 |
---|---|---|
committer | Kamil Kaminski <kamilkss@gmail.com> | 2010-10-07 22:49:38 -0500 |
commit | 9faf641bbc50aa8092a2770e96b5015091591b0c (patch) | |
tree | 80b37710113053cd2d3ce8b29e1d377ad465a886 /glut | |
parent | 31b833b52d2d0047596a1d55cdd86e3427a36a6e (diff) | |
download | GLPyramid-9faf641bbc50aa8092a2770e96b5015091591b0c.tar.gz GLPyramid-9faf641bbc50aa8092a2770e96b5015091591b0c.tar.bz2 GLPyramid-9faf641bbc50aa8092a2770e96b5015091591b0c.zip |
misc corrections
Diffstat (limited to 'glut')
-rw-r--r-- | glut/pyramid.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |