Add flag for core GL contexts.

Since using VBOs all the time is slower.
This commit is contained in:
Unknown W. Brackets 2015-12-14 21:12:50 -08:00
parent 164594b044
commit 27ad8185e3
2 changed files with 2 additions and 1 deletions

View File

@ -505,7 +505,7 @@ void GLES_GPU::CheckGPUFeatures() {
if (gl_extensions.NV_framebuffer_blit) {
features |= GPU_SUPPORTS_NV_FRAMEBUFFER_BLIT;
}
if (gl_extensions.ARB_vertex_array_object) {
if (gl_extensions.ARB_vertex_array_object && gl_extensions.IsCoreContext) {
features |= GPU_SUPPORTS_VAO;
}

View File

@ -35,6 +35,7 @@ struct GLExtensions {
char model[128];
bool IsGLES;
bool IsCoreContext;
bool GLES3; // true if the full OpenGL ES 3.0 is supported
// OES