Add support OES_texture_half_float.

This commit is contained in:
xebra committed 2017-02-01 14:37:03 +09:00
1 parent 51c34e8157
commit 918bee8801
4 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ bool CheckSupportInstancedTessellation() {
glGetIntegerv(GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, &maxVertexTextureImageUnits);
bool vertexTexture = maxVertexTextureImageUnits >= 3; // At least 3 for hardware tessellation
bool instanceRendering = gl_extensions.EXT_gpu_shader4;
bool textureFloat = gl_extensions.ARB_texture_float || gl_extensions.OES_texture_float;
bool textureFloat = gl_extensions.ARB_texture_float || gl_extensions.OES_texture_float || gl_extensions.OES_texture_half_float;
return instanceRendering && vertexTexture && textureFloat;
}