Hi, I've been working with Emscripten and WebGL for a while. So far, everything seems to work as intended, except anisotropic filtering.
1) Enabling anisotropic filtering. The following returns 0 instead of 1: emscripten_webgl_enable_extension(emscripten_webgl_get_current_context(), "EXT_texture_filter_anisotropic") 2) Querying maximum anisotropy. The following returns 0 (instead of e.g. 4), and produces an error in the web-console (*WebGL: INVALID_ENUM: getParameter: invalid parameter name, EXT_texture_filter_anisotropic not enabled*): GLfloat maxAnisotropy; glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &maxAnisotropy); 3) Applying anisotropic filtering: The following is not working, and produces an error in the web-console (): glBindTexture(GL_TEXTURE_2D, ...); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, maxAnisotropy); These 3 problems do not make sense, because I can see anisotropic filtering in action when running this pure JS sample <http://blog.tojicode.com/2012/03/anisotropic-filtering-in-webgl.html>. FWIW, I'm testing with Safari 8.0.5 on OSX 10.10.3. I wonder if anyone was luckier than me on this topic? Thanks! Ariel | chronotext-cross <https://github.com/arielm/chronotext-cross> -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
