Skip to content

Commit

Permalink
xrRender/ResourceManager.cpp: Force built-in blenders when FFP is ena…
Browse files Browse the repository at this point in the history
…bled (#1313)
  • Loading branch information
Xottab-DUTY committed Jun 28, 2023
1 parent d16e02e commit fa68671
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/Layers/xrRender/ResourceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,10 @@ Shader* CResourceManager::Create(LPCSTR s_shader, LPCSTR s_textures, LPCSTR s_co
if (!GEnv.isDedicatedServer)
{
#if defined(USE_DX9)
# ifndef _EDITOR
if (_lua_HasShader(s_shader))
const bool useCppBlender = RImplementation.o.ffp && _GetBlender(s_shader);
if (!useCppBlender && _lua_HasShader(s_shader))
return _lua_Create(s_shader, s_textures);
else
# endif
{
return _cpp_Create(s_shader, s_textures, s_constants, s_matrices);
}
return _cpp_Create(s_shader, s_textures, s_constants, s_matrices);
#else // TODO: DX11: When all shaders are ready switch to common path
if (_lua_HasShader(s_shader))
return _lua_Create(s_shader, s_textures);
Expand Down

0 comments on commit fa68671

Please sign in to comment.