X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=ld42_outofspace;a=blobdiff_plain;f=src%2Fopengl.c;h=06c637b93d2b3eaa524d4cfe5d744d7ee5c622a2;hp=7042514bc3131b32d8790d1a9a4e98de53398b0a;hb=066942396f5fbac07e608bc5b23bb6d3cdccc42a;hpb=6206d87eb7b24c04c5675404bdb13e9ace86f2fe diff --git a/src/opengl.c b/src/opengl.c index 7042514..06c637b 100644 --- a/src/opengl.c +++ b/src/opengl.c @@ -15,6 +15,13 @@ int init_opengl(void) { glewInit(); + if(GLEW_EXT_texture_filter_anisotropic) { + glGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &glcaps.max_aniso); + } + if(GLEW_ARB_tessellation_shader) { + glGetIntegerv(GL_MAX_TESS_GEN_LEVEL, &glcaps.max_tess_level); + } + glcaps.debug = GLEW_ARB_debug_output; #ifndef NDEBUG