Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
23105 토론

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

idata
직원
2,229 조회수

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 포인트
2 응답
ROBERT_U_Intel
1,355 조회수

Hi

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

 

0 포인트
NICHOLAS_F_Intel
1,355 조회수

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 포인트
응답