"glGetString() is not deprecated, only the GL_EXTENSIONS argument to it is. There’s a lot of history with people using fixed-size buffers to copy the merged extension string into and having that break when someone releases a new driver, which is what we’re hoping to alleviate in the long term here."spa
可使用code
GLint n, i; glGetIntegerv(GL_NUM_EXTENSIONS, &n); for (i = 0; i < n; i++) { printf("%s", glGetStringi(GL_EXTENSIONS, i)); }
參考https://community.khronos.org/t/gl-extensions-replacement/55542blog