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

Optimize ShaderN64DepthCompare a little bit.

This commit is contained in:
Sergey Lipskiy 2018-09-06 22:35:48 +07:00
parent 9b487453a6
commit 22267831e0

View File

@ -1947,11 +1947,13 @@ public:
{
if (config.frameBufferEmulation.N64DepthCompare != 0) {
m_part =
"uniform lowp int uEnableDepth; \n"
"uniform lowp int uDepthMode; \n"
"uniform lowp int uEnableDepthUpdate; \n"
"uniform mediump float uDeltaZ; \n"
"bool depth_compare(highp float curZ) \n"
"bool depth_compare(highp float curZ) \n"
"{ \n"
" if (uEnableDepth == 0) return true; \n"
;
if (_glinfo.imageTextures) {
m_part +=