Declare extension usage for vertex shader layer

This commit is contained in:
Vincent Lejeune 2014-09-24 23:43:30 +02:00
parent 856ee103cf
commit 3be8fdf82c

View File

@ -145,6 +145,8 @@ GLuint LoadShader(const char * file, unsigned type)
char versionString[20];
sprintf(versionString, "#version %d\n", irr_driver->getGLSLVersion());
std::string Code = versionString;
if (irr_driver->hasVSLayerExtension())
Code += "#extension GL_AMD_vertex_shader_layer : enable\n";
if (UserConfigParams::m_azdo)
Code += "#extension GL_ARB_bindless_texture : enable\n";
else