Skip to content

Commit

Permalink
xrRender_GL: fix possible problems with shader compilation on some Op…
Browse files Browse the repository at this point in the history
…enGL drivers
  • Loading branch information
Xottab-DUTY authored Jun 7, 2024
1 parent d12ccfe commit 7f18a2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Layers/xrRenderPC_GL/rgl_shaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ HRESULT CRender::shader_compile(pcstr name, IReader* fs, pcstr pFunctionName,
};

options.add("#version 410");
options.add("#extension GL_ARB_separate_shader_objects : enable");

#ifdef DEBUG
options.add("#pragma optimize (off)");
Expand All @@ -232,8 +233,6 @@ HRESULT CRender::shader_compile(pcstr name, IReader* fs, pcstr pFunctionName,
sh_name.append(1u);
#endif

options.add("#extension GL_ARB_separate_shader_objects : enable");

xr_sprintf(c_name, "// %s.%s", name, pTarget);
options.add(c_name);

Expand Down

0 comments on commit 7f18a2b

Please sign in to comment.