Correct uSamplerEnable uniform in ImGui shader; make sure to pop the unused imgui command before rendering

Makes gui.drawString somewhat work under OpenGL, but there's still something wrong when it's combined with other draw functions
This commit is contained in:
CasualPokePlayer 2024-05-24 20:45:40 -07:00
parent e788b3926b
commit 8b969dfeab
2 changed files with 2 additions and 1 deletions

View File

@ -164,7 +164,7 @@ void main()
public const string ImGuiPixelShader_gl = @"
//opengl 3.0
#version 130
bool uSamplerEnable;
uniform bool uSamplerEnable;
uniform sampler2D uSampler0;
in vec2 vTexcoord0;

View File

@ -281,6 +281,7 @@ namespace BizHawk.Bizware.Graphics
DrawImage(_stringOutput, 0, 0);
}
_imGuiDrawList._PopUnusedDrawCmd();
RenderInternal(width, height);
ResetDrawList();
}