From 717c82ee4a05bf00e78913635d53fd1cda5ea6db Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 1 Dec 2014 09:58:23 +0100 Subject: [PATCH] - On Intel, we have to disable shader storage buffers because their complier contains a bug disallowing unsized arrays. --- src/gl/system/gl_interface.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gl/system/gl_interface.cpp b/src/gl/system/gl_interface.cpp index 4541cfb18f..fe27b419cc 100644 --- a/src/gl/system/gl_interface.cpp +++ b/src/gl/system/gl_interface.cpp @@ -139,7 +139,11 @@ void gl_LoadExtensions() // Recent drivers, GL 4.4 don't have this problem, these can easily be recognized by also supporting the GL_ARB_buffer_storage extension. if (CheckExtension("GL_ARB_shader_storage_buffer_object")) { - gl.flags |= RFL_SHADER_STORAGE_BUFFER; + // Shader storage buffer objects are broken on current Intel drivers. + if (strstr(gl.vendorstring, "Intel") == NULL) + { + gl.flags |= RFL_SHADER_STORAGE_BUFFER; + } } gl.flags |= RFL_BUFFER_STORAGE; }