Permalink
Browse files

GLES: Allow hwtess for GL 3.1 w/o shader4.

gl_InstanceID was added to core in 3.1, so we don't need gpu_shader4.
  • Loading branch information...
unknownbrackets committed Sep 22, 2017
1 parent bd63fdd commit 5784b5142807551abaaf5d1220d7d27032c41234
Showing with 2 additions and 2 deletions.
  1. +1 −1 GPU/GLES/GPU_GLES.cpp
  2. +1 −1 UI/GameSettingsScreen.cpp
View
@@ -299,7 +299,7 @@ void GPU_GLES::CheckGPUFeatures() {
features |= GPU_SUPPORTS_ANISOTROPY;
bool canUseInstanceID = gl_extensions.EXT_draw_instanced || gl_extensions.ARB_draw_instanced;
bool canDefInstanceID = gl_extensions.IsGLES || gl_extensions.EXT_gpu_shader4;
bool canDefInstanceID = gl_extensions.IsGLES || gl_extensions.EXT_gpu_shader4 || gl_extensions.VersionGEThan(3, 1);
bool instanceRendering = gl_extensions.GLES3 || (canUseInstanceID && canDefInstanceID);
features |= GPU_SUPPORTS_INSTANCE_RENDERING;
@@ -94,7 +94,7 @@ bool CheckSupportInstancedTessellationGLES() {
bool vertexTexture = maxVertexTextureImageUnits >= 3; // At least 3 for hardware tessellation
bool canUseInstanceID = gl_extensions.EXT_draw_instanced || gl_extensions.ARB_draw_instanced;
bool canDefInstanceID = gl_extensions.IsGLES || gl_extensions.EXT_gpu_shader4;
bool canDefInstanceID = gl_extensions.IsGLES || gl_extensions.EXT_gpu_shader4 || gl_extensions.VersionGEThan(3, 1);
bool instanceRendering = gl_extensions.GLES3 || (canUseInstanceID && canDefInstanceID);
bool textureFloat = gl_extensions.ARB_texture_float || gl_extensions.OES_texture_float;

0 comments on commit 5784b51

Please sign in to comment.