GLES 3.0 including gl2ext.h

后端 未结 1 1441
粉色の甜心
粉色の甜心 2021-01-05 08:36

According to the Khronos OpenGL ES Registry, the extension header for GLES 3.0 is actually . gl3ext.h should be empty and pro

1条回答
  •  时光取名叫无心
    2021-01-05 08:42

    Based on Michael's comments, I've found that this is fixed in API-21. However, if you still need to use API-18 or API-19, there is a work-around. You can simply:

    #define __gl2_h_
    #include 
    

    When gl2ext.h includes gl2.h, the defined include guard will cause the contents of gl2.h to be skipped.

    0 讨论(0)
提交回复
热议问题