diff options
-rw-r--r-- | progs/demos/cubemap.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/progs/demos/cubemap.c b/progs/demos/cubemap.c index b85a1282c86..41f99d0164d 100644 --- a/progs/demos/cubemap.c +++ b/progs/demos/cubemap.c @@ -426,7 +426,7 @@ static void init_checkers( void ) GL_BGRA, GL_UNSIGNED_BYTE, image); } - glGenerateMipmap(GL_TEXTURE_CUBE_MAP_ARB); + glGenerateMipmapEXT(GL_TEXTURE_CUBE_MAP_ARB); } @@ -502,6 +502,13 @@ static void init( GLboolean useImageFiles ) printf("Sorry, this demo requires GL_ARB_texture_cube_map\n"); exit(0); } + + /* Needed for glGenerateMipmapEXT + */ + if (!strstr(exten, "GL_EXT_framebuffer_object")) { + printf("Sorry, this demo requires GL_ARB_texture_cube_map\n"); + exit(0); + } } printf("GL_RENDERER: %s\n", (char *) glGetString(GL_RENDERER)); |