aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlessandro Borges <[email protected]>2010-01-22 19:46:59 +0000
committerAlessandro Borges <[email protected]>2010-01-22 19:46:59 +0000
commit2170cce0753b8d5f280e3ad71a595806c6fe7100 (patch)
tree7bd502ea0ff217f164b40bf358845a183c848ad3 /src
parent262bdd80281d46acbc4ed5a5831ac4adbb366670 (diff)
Issue number: 640 - setDepthTestFunction do not work with the D3D renderer
Submitted by: lamer77 Reviewed by: aces git-svn-id: https://svn.java.net/svn/j3d-core~svn/branches/dev-1_6@948 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src')
-rw-r--r--src/native/d3d/Attributes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/native/d3d/Attributes.cpp b/src/native/d3d/Attributes.cpp
index 0a65f42..2dc0df9 100644
--- a/src/native/d3d/Attributes.cpp
+++ b/src/native/d3d/Attributes.cpp
@@ -588,6 +588,7 @@ void JNICALL Java_javax_media_j3d_NativePipeline_updateRenderingAttributes(
{
d3dCtx->zEnable = TRUE;
device->SetRenderState(D3DRS_ZENABLE, D3DZB_TRUE);
+ device->SetRenderState(D3DRS_ZFUNC, getDepthFunc(db_func));
}
else
{