OpenGL anisotropic filtering support, contradictory check results -
when checking if anisotropic filtering supported, contradictory results.
if(glewissupported("gl_ext_texture_filter_anisotropic") || glew_ext_texture_filter_anisotropic) { std::cout << "support anisotropic" << std::endl; } glfloat max; glgetfloatv(gl_max_texture_max_anisotropy_ext, &max); std::cout << max << std::endl;
the output section on machine is:
16
so seemingly anisotropic filtering of 16 supported, glewissupported
glew extension string opposite.
is checking gl_max_texture_max_anisotropy_ext
enough , glew check wrong, or different going on?
apparently there known bug in glew glgetstring(gl_extensions)
used in opengl 3+ context instead of glgetstringi
replaced extension querying in opengl 3+.
so until patched, extension querying must done manually.
Comments
Post a Comment