libresman
diff examples/imgthumbs/src/thumbs.c @ 6:410c19c735b2
- removed the glew dependency
- initial thread pool implementation
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 03 Feb 2014 05:22:09 +0200 |
parents | 026cdd1737ff |
children | bebc065a941f |
line diff
1.1 --- a/examples/imgthumbs/src/thumbs.c Sat Feb 01 08:02:08 2014 +0200 1.2 +++ b/examples/imgthumbs/src/thumbs.c Mon Feb 03 05:22:09 2014 +0200 1.3 @@ -7,6 +7,10 @@ 1.4 #include "opengl.h" 1.5 #include "thumbs.h" 1.6 1.7 +#ifndef GL_COMPRESSED_RGB 1.8 +#define GL_COMPRESSED_RGB 0x84ed 1.9 +#endif 1.10 + 1.11 struct thumbnail *create_thumbs(const char *dirpath) 1.12 { 1.13 DIR *dir; 1.14 @@ -14,7 +18,7 @@ 1.15 struct thumbnail *list = 0; 1.16 1.17 unsigned int intfmt = GL_COMPRESSED_RGB; 1.18 - if(!GLEW_ARB_texture_compression) { 1.19 + if(!strstr(glGetString(GL_EXTENSIONS), "GL_ARB_texture_compression")) { 1.20 printf("warning, no texture compression available.\n"); 1.21 intfmt = GL_RGB; 1.22 }