Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
20596 Discussions

[Bug Report] GLSL compiler crashes when glsl code doesn't end with new-line character

idata
Employee
1,304 Views

OS: Win7 64bit

Renderer info:

GL_VENDOR:Intel

GL_RENDERER:Intel(R) HD Graphics 3000

GL_VERSION:3.1.0 - Build 8.15.10.2761

Description:

Code crashes somewhere in glCompileShader. New-line character after "# error foo" prevents crash.

Code:

//Intel compiler crashes

std::string source =

"# version 130\r\n"

"# error foo";

const char* sources[] = {source.c_str()};

gl::GLint lens[] = {source.size()};

gl::GLint shader = gl::glCreateShader(gl::GL_VERTEX_SHADER);

gl::glShaderSource(shader,1,sources,lens);

gl::glCompileShader(shader);

0 Kudos
2 Replies
ROBERT_U_Intel
Employee
430 Views

Hi

Thanks fort reporting this issue. We have replicated the issue and are currently working to resolve it for future driver releases.

 

0 Kudos
NICHOLAS_F_Intel
Employee
430 Views

Hi guubao,

We've recently released a driver which should resolve this issue. The driver is version (.3071) and is available at downloadcenter.intel.com. Let me know if you are still having issues with the GLSL compiler after installing the latest driver.

Thanks,

-Nic

0 Kudos
Reply