diff options
author | Kyle K <kylek389@gmail.com> | 2011-07-18 14:42:56 -0500 |
---|---|---|
committer | Kamil Kaminski <kamilkss@gmail.com> | 2011-07-18 14:42:56 -0500 |
commit | 9053faa7cac1cf05a3659d1b5b24d456d96e4d22 (patch) | |
tree | fd70a9f1567ebef3e07f6060118fbb24d1509756 /sdl/gltools.c | |
parent | a780d11c48d0901a9e019687ce127a1d4f4672fb (diff) | |
download | GLPyramid-9053faa7cac1cf05a3659d1b5b24d456d96e4d22.tar.gz GLPyramid-9053faa7cac1cf05a3659d1b5b24d456d96e4d22.tar.bz2 GLPyramid-9053faa7cac1cf05a3659d1b5b24d456d96e4d22.zip |
sdl: make platform more generic by splitting some code into client struct
Diffstat (limited to 'sdl/gltools.c')
-rw-r--r-- | sdl/gltools.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sdl/gltools.c b/sdl/gltools.c index 2449cfc..7fc92f7 100644 --- a/sdl/gltools.c +++ b/sdl/gltools.c @@ -30,7 +30,10 @@ GLuint gltLoadTGATexture(const char *fname) pBytes = gltLoadTGA(fname, &iWidth, &iHeight, &iComponents, &eFormat); if (!pBytes) + { fprintf(stderr, "gltLoadTGA: failed to load texture!\n"); + return -1; + } glTexImage2D(GL_TEXTURE_2D, 0, iComponents, iWidth, iHeight, 0, eFormat, GL_UNSIGNED_BYTE, pBytes); |