jfcameron / gdk-graphics

3D Rendering using OpenGLES 2.0/WebGL1.0. Platforms: Linux, Windows, Mac, x86 64bit, arm64, wasm
MIT License
1 stars 1 forks source link

GLH: opengl extension detection: handle in a uniform way #43

Open jfcameron opened 3 years ago

jfcameron commented 3 years ago

in webgl1es2_texture.cpp, detection of arb_depth_texture is done in line and only for glew platforms (linux and windows). Should move this into glh.h, should vary implementation to support mac, wasm.

also affects webgl1es2_texture_camera.cpp, which uses the depth_attach extension.