Browse Source

specify 4.0 core profile usage. see: https://en.wikipedia.org/wiki/OpenGL_Shading_Language#Versions

Brian Roberts 6 years ago
parent
commit
2c3ab893c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/gfx/gl/gfxGLShader.cpp

+ 1 - 1
Engine/source/gfx/gl/gfxGLShader.cpp

@@ -1008,7 +1008,7 @@ bool GFXGLShader::_loadShaderFromStream(  GLuint shader,
    Vector<U32> lengths;
    
    // The GLSL version declaration must go first!
-   const char *versionDecl = "#version 150\r\n";
+   const char *versionDecl = "#version 400\r\n";
    buffers.push_back( dStrdup( versionDecl ) );
    lengths.push_back( dStrlen( versionDecl ) );