mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Broadened bypass mechanism for bgfx default headers in the OpenGL renderer. This reflects the fact that, if the first line of a shader is already a #version declaration, we never want to write lines above that regardless of what version is declared. (#2168)
This commit is contained in:
@@ -5824,7 +5824,7 @@ namespace bgfx { namespace gl
|
||||
if (0 != m_id)
|
||||
{
|
||||
if (GL_COMPUTE_SHADER != m_type
|
||||
&& 0 != bx::strCmp(code, "#version 430", 12) ) // #2000
|
||||
&& 0 != bx::strCmp(code, "#version", 8) ) // #2000
|
||||
{
|
||||
int32_t tempLen = code.getLength() + (4<<10);
|
||||
char* temp = (char*)alloca(tempLen);
|
||||
|
||||
Reference in New Issue
Block a user