fixes to the threadedness of the sw rasteriser

also fix #639 and fix #880
This commit is contained in:
RSDuck
2021-01-26 16:42:27 +01:00
parent ab222ab135
commit b78bc4cb66
8 changed files with 40 additions and 16 deletions

View File

@ -182,6 +182,10 @@ void SetRenderSettings(RenderSettings& settings)
glBindFramebuffer(GL_FRAMEBUFFER, 0);
}
void Stop()
{
RenderFrame();
}
void RenderFrame()
{
@ -195,6 +199,8 @@ void RenderFrame()
glViewport(0, 0, ScreenW, ScreenH);
glClear(GL_COLOR_BUFFER_BIT);
// TODO: select more shaders (filtering, etc)
OpenGL::UseShaderProgram(CompShader[0]);
glUniform1ui(CompScaleLoc[0], Scale);