openGL renderAPI scissor not immediate
pgruenbacher opened this issue · comments
compare the GL render api
bsf/Source/Plugins/bsfGLRenderAPI/BsGLRenderAPI.cpp
Lines 1281 to 1292 in 46f13bf
to the D3D11 render api implementation.
bsf/Source/Plugins/bsfD3D11RenderAPI/BsD3D11RenderAPI.cpp
Lines 870 to 883 in 46f13bf
I noticed this when doing the imgui implementation. https://github.com/pgruenbacher/bsf/blob/020e89a68feb84defeaaa59386d6036bafa4e74c/Source/Plugins/bsfImgui/Src/BsImguiRenderer.cpp#L238
it appears that the glScissor is only called when enableScissor is called. One way was to re-update the graphicsPipeline. Other way was I just updated the render api to do glScissorRect. However now there's the issue that the glScissorRect is being called redundantly.
https://github.com/pgruenbacher/bsf/blob/020e89a68feb84defeaaa59386d6036bafa4e74c/Source/Plugins/bsfGLRenderAPI/BsGLRenderAPI.cpp#L1281
my guess is that the setScissorTestEnable in the gl render api needs to be updated as well, maybe get rid of the following lines and move them to the setScissorRect?
bsf/Source/Plugins/bsfGLRenderAPI/BsGLRenderAPI.cpp
Lines 1758 to 1766 in 46f13bf
This should be resolved on latest.
confirmed to work.