void OGLRender::ApplyZBias(int bias)
{
+ static int old_bias;
float f1 = bias > 0 ? -3.0f : 0.0f; // z offset = -3.0 * max(abs(dz/dx),abs(dz/dy)) per pixel delta z slope
float f2 = bias > 0 ? -3.0f : 0.0f; // z offset += -3.0 * 1 bit
+ if (bias == old_bias)
+ return;
+ old_bias = bias;
+
#ifdef PAULSCODE
// Android_JNI_GetPolygonOffset(hardwareType, bias, &f1, &f2);
// glPolygonOffset(0.2f, 0.2f);
OPENGL_CHECK_ERRORS;
}
+#if 0
void OGLRender::InitCombinerBlenderForSimpleRectDraw(uint32 tile)
{
//glEnable(GL_CULL_FACE);
OPENGL_CHECK_ERRORS;
//glEnable(GL_ALPHA_TEST);
}
+#endif
COLOR OGLRender::PostProcessDiffuseColor(COLOR curDiffuseColor)
{