"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."

可以使用

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/55542

相关文章:

  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2021-06-05
  • 2021-10-16
  • 2022-02-12
  • 2021-09-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-26
  • 2021-10-26
  • 2021-10-02
  • 2022-12-23
  • 2021-05-16
  • 2021-12-13
相关资源
相似解决方案