<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [Bug Report] GLSL compiler crashes when glsl code ends with # endif in Graphics</title>
    <link>https://community.intel.com/t5/Graphics/Bug-Report-GLSL-compiler-crashes-when-glsl-code-ends-with-endif/m-p/230197#M3390</link>
    <description>&lt;P&gt;Renderer info:&lt;/P&gt;&lt;P&gt;GL_VENDOR:Intel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt; GL_RENDERER:Intel(R) HD Graphics 3000&lt;P&gt;&amp;nbsp;&lt;/P&gt; GL_VERSION:3.1.0 - Build 8.15.10.2696&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code crashes somewhere in glCompileShader. Any whitespace characters after # endif prevents crash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;std::string shader_src = &lt;P&gt;&amp;nbsp;&lt;/P&gt; "# ifdef DEFINED\r\n"&lt;P&gt;&amp;nbsp;&lt;/P&gt; "out vec4 position;\r\n"&lt;P&gt;&amp;nbsp;&lt;/P&gt; "void main() {position = vec4(1.0,1.0,1.0,1.0);} \r\n"&lt;P&gt;&amp;nbsp;&lt;/P&gt; "# else\r\n"&lt;P&gt;&amp;nbsp;&lt;/P&gt; "out vec4 position;\r\n"&lt;P&gt;&amp;nbsp;&lt;/P&gt; "void main() {position = vec4(1.0,1.0,1.0,1.0);} \r\n"&lt;P&gt;&amp;nbsp;&lt;/P&gt; "# endif";&lt;P&gt;&amp;nbsp;&lt;/P&gt;std::string head = "# version 130\r\n# define DEFINED 1\r\n";&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;gl::GLint shader = gl::glCreateShader(gl::GL_VERTEX_SHADER);&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;const char* sources[] = {head.c_str(), shader_src.c_str()};&lt;P&gt;&amp;nbsp;&lt;/P&gt;gl::GLint lens[] = {head.size(),shader_src.size()};&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;gl::glShaderSource(shader,2,sources,lens);&lt;P&gt;&amp;nbsp;&lt;/P&gt;gl::glCompileShader(shader);&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2012 13:32:55 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2012-04-24T13:32:55Z</dc:date>
    <item>
      <title>[Bug Report] GLSL compiler crashes when glsl code ends with # endif</title>
      <link>https://community.intel.com/t5/Graphics/Bug-Report-GLSL-compiler-crashes-when-glsl-code-ends-with-endif/m-p/230197#M3390</link>
      <description>&lt;P&gt;Renderer info:&lt;/P&gt;&lt;P&gt;GL_VENDOR:Intel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt; GL_RENDERER:Intel(R) HD Graphics 3000&lt;P&gt;&amp;nbsp;&lt;/P&gt; GL_VERSION:3.1.0 - Build 8.15.10.2696&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code crashes somewhere in glCompileShader. Any whitespace characters after # endif prevents crash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;std::string shader_src = &lt;P&gt;&amp;nbsp;&lt;/P&gt; "# ifdef DEFINED\r\n"&lt;P&gt;&amp;nbsp;&lt;/P&gt; "out vec4 position;\r\n"&lt;P&gt;&amp;nbsp;&lt;/P&gt; "void main() {position = vec4(1.0,1.0,1.0,1.0);} \r\n"&lt;P&gt;&amp;nbsp;&lt;/P&gt; "# else\r\n"&lt;P&gt;&amp;nbsp;&lt;/P&gt; "out vec4 position;\r\n"&lt;P&gt;&amp;nbsp;&lt;/P&gt; "void main() {position = vec4(1.0,1.0,1.0,1.0);} \r\n"&lt;P&gt;&amp;nbsp;&lt;/P&gt; "# endif";&lt;P&gt;&amp;nbsp;&lt;/P&gt;std::string head = "# version 130\r\n# define DEFINED 1\r\n";&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;gl::GLint shader = gl::glCreateShader(gl::GL_VERTEX_SHADER);&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;const char* sources[] = {head.c_str(), shader_src.c_str()};&lt;P&gt;&amp;nbsp;&lt;/P&gt;gl::GLint lens[] = {head.size(),shader_src.size()};&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;gl::glShaderSource(shader,2,sources,lens);&lt;P&gt;&amp;nbsp;&lt;/P&gt;gl::glCompileShader(shader);&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 13:32:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Bug-Report-GLSL-compiler-crashes-when-glsl-code-ends-with-endif/m-p/230197#M3390</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2012-04-24T13:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug Report] GLSL compiler crashes when glsl code ends with # endif</title>
      <link>https://community.intel.com/t5/Graphics/Bug-Report-GLSL-compiler-crashes-when-glsl-code-ends-with-endif/m-p/230198#M3391</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Intel engineering department is aware of this problem and they are currently working on it. Please keep checking this post for future updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Allan.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2012 19:07:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Bug-Report-GLSL-compiler-crashes-when-glsl-code-ends-with-endif/m-p/230198#M3391</guid>
      <dc:creator>Allan_J_Intel1</dc:creator>
      <dc:date>2012-04-26T19:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug Report] GLSL compiler crashes when glsl code ends with # endif</title>
      <link>https://community.intel.com/t5/Graphics/Bug-Report-GLSL-compiler-crashes-when-glsl-code-ends-with-endif/m-p/230199#M3392</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A new driver update has been posted; please try testing new driver to see if the problem is corrected.  Driver version 8.15.10.2761&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21431"&gt;http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21431&lt;/A&gt; &lt;A href="http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21431"&gt;http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21431&lt;/A&gt;  64bit .zip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21430"&gt;http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21430&lt;/A&gt; &lt;A href="http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21430"&gt;http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21430&lt;/A&gt;  64bit. exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21429"&gt;http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21429&lt;/A&gt; &lt;A href="http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21429"&gt;http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21429&lt;/A&gt;  32bit .zip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21428"&gt;http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21428&lt;/A&gt; &lt;A href="http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21428"&gt;http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;DwnldID=21428&lt;/A&gt;  32bit. exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Allan.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2012 19:41:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Bug-Report-GLSL-compiler-crashes-when-glsl-code-ends-with-endif/m-p/230199#M3392</guid>
      <dc:creator>Allan_J_Intel1</dc:creator>
      <dc:date>2012-06-15T19:41:48Z</dc:date>
    </item>
  </channel>
</rss>

