Skip to content
Snippets Groups Projects
Commit 40b8ef26 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Check for ARB_clip_control extension support

parent 873350e3
No related branches found
No related tags found
No related merge requests found
...@@ -182,6 +182,7 @@ LLGLManager::LLGLManager() : ...@@ -182,6 +182,7 @@ LLGLManager::LLGLManager() :
mHasTextureSwizzle(false), mHasTextureSwizzle(false),
mHasGPUShader4(false), mHasGPUShader4(false),
mHasClipControl(false),
mIsATI(FALSE), mIsATI(FALSE),
mIsNVIDIA(FALSE), mIsNVIDIA(FALSE),
mIsIntel(FALSE), mIsIntel(FALSE),
...@@ -745,7 +746,8 @@ void LLGLManager::asLLSD(LLSD& info) ...@@ -745,7 +746,8 @@ void LLGLManager::asLLSD(LLSD& info)
info["has_srgb_texture"] = mHassRGBTexture; info["has_srgb_texture"] = mHassRGBTexture;
info["has_srgb_framebuffer"] = mHassRGBFramebuffer; info["has_srgb_framebuffer"] = mHassRGBFramebuffer;
info["has_texture_srgb_decode"] = mHasTexturesRGBDecode; info["has_texture_srgb_decode"] = mHasTexturesRGBDecode;
info["has_gpu_shader_4"] = mHasGPUShader4; info["has_gpu_shader4"] = mHasGPUShader4;
info["has_clip_control"] = mHasClipControl;
// Vendor-specific extensions // Vendor-specific extensions
info["is_ati"] = mIsATI; info["is_ati"] = mIsATI;
...@@ -894,6 +896,7 @@ void LLGLManager::initExtensions() ...@@ -894,6 +896,7 @@ void LLGLManager::initExtensions()
mHasTextureSwizzle = mGLVersion >= 3.3f || epoxy_has_gl_extension("GL_ARB_texture_swizzle"); mHasTextureSwizzle = mGLVersion >= 3.3f || epoxy_has_gl_extension("GL_ARB_texture_swizzle");
mHasGPUShader4 = mGLVersion >= 3.0f || epoxy_has_gl_extension("GL_EXT_gpu_shader4"); mHasGPUShader4 = mGLVersion >= 3.0f || epoxy_has_gl_extension("GL_EXT_gpu_shader4");
mHasClipControl = mGLVersion >= 4.5 || epoxy_has_gl_extension("GL_ARB_clip_control");
#endif #endif
#if LL_LINUX #if LL_LINUX
...@@ -921,6 +924,7 @@ void LLGLManager::initExtensions() ...@@ -921,6 +924,7 @@ void LLGLManager::initExtensions()
mHasFragmentShader = FALSE; mHasFragmentShader = FALSE;
mHasTextureSwizzle = FALSE; mHasTextureSwizzle = FALSE;
mHasGPUShader4 = FALSE; mHasGPUShader4 = FALSE;
mHasClipControl = FALSE;
LL_WARNS("RenderInit") << "GL extension support DISABLED via LL_GL_NOEXT" << LL_ENDL; LL_WARNS("RenderInit") << "GL extension support DISABLED via LL_GL_NOEXT" << LL_ENDL;
} }
else if (getenv("LL_GL_BASICEXT")) /* Flawfinder: ignore */ else if (getenv("LL_GL_BASICEXT")) /* Flawfinder: ignore */
......
...@@ -129,8 +129,9 @@ class LLGLManager ...@@ -129,8 +129,9 @@ class LLGLManager
BOOL mHassRGBTexture; BOOL mHassRGBTexture;
BOOL mHassRGBFramebuffer; BOOL mHassRGBFramebuffer;
BOOL mHasTexturesRGBDecode; BOOL mHasTexturesRGBDecode;
bool mHasTextureSwizzle; bool mHasTextureSwizzle = false;
bool mHasGPUShader4; bool mHasGPUShader4 = false;
bool mHasClipControl = false;
// Vendor-specific extensions // Vendor-specific extensions
BOOL mIsATI; BOOL mIsATI;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment