glsl: extension must be declared first

Mesa follows this rule of the standard.

Issue #2037

Shader compile fines now but SSO interface seems to be broken.
This commit is contained in:
Gregory Hainaut 2017-08-12 15:37:29 +02:00
parent 8c37418e44
commit c4bf09ad32
2 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,6 @@
#ifndef SHADER_MODEL
#define GLSL 1
#extension GL_ARB_gpu_shader5 : enable
#else
#define GLSL 0
#endif

View File

@ -1528,6 +1528,7 @@ void GSDeviceOGL::DoExternalFX(GSTexture* sTex, GSTexture* dTex)
std::string config_name(theApp.GetConfigS("shaderfx_conf"));
std::ifstream fconfig(config_name);
std::stringstream config;
config << "#extension GL_ARB_gpu_shader5 : require\n";
if (fconfig.good())
config << fconfig.rdbuf();
else