Skip to content

Commit cc44008

Browse files
committed
Avoid unused shader path in pixel mode
1 parent 4e0dfc2 commit cc44008

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

platforms/shared/desktop/ogl_renderer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ static void render_gui(void)
331331
static bool should_use_internal_shader_chain(void)
332332
{
333333
return ogl_shader_chain_is_initialized() &&
334+
config_video.shader_mode == config_ShaderMode_External &&
335+
ogl_shader_chain_has_preset() &&
334336
!config_debug.debug &&
335337
screen_geometry.physical_width > 0 &&
336338
screen_geometry.physical_height > 0;

0 commit comments

Comments
 (0)