1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Call glMemoryBarrier before polygon draw when N64DepthCompare enabled.

This commit is contained in:
Sergey Lipskiy 2017-02-17 15:53:46 +07:00
parent 2a6d1f1f1b
commit b6067bb90d

View File

@ -189,6 +189,9 @@ void BufferedDrawer::_updateTrianglesBuffers(const graphics::Context::DrawTriang
void BufferedDrawer::drawTriangles(const graphics::Context::DrawTriangleParameters & _params)
{
if (config.frameBufferEmulation.N64DepthCompare != 0)
glMemoryBarrier(GL_SHADER_IMAGE_ACCESS_BARRIER_BIT);
_updateTrianglesBuffers(_params);
if (config.generalEmulation.enableHWLighting != 0)