diff options
Diffstat (limited to 'src/native/d3d/Attributes.cpp')
-rw-r--r-- | src/native/d3d/Attributes.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/native/d3d/Attributes.cpp b/src/native/d3d/Attributes.cpp index c4fd82f..359ac22 100644 --- a/src/native/d3d/Attributes.cpp +++ b/src/native/d3d/Attributes.cpp @@ -345,7 +345,7 @@ void JNICALL Java_javax_media_j3d_Canvas3D_setLightEnables( #pragma warning(disable:4244) // loss of data from __int64 to int for (int i=nlights-1; i>=0; i--) { - device->LightEnable(i, enable_mask & (1<<i)); + device->LightEnable(i, enable_mask & (long)(1L<<i)); } } @@ -492,6 +492,28 @@ void JNICALL Java_javax_media_j3d_RenderingAttributesRetained_updateNative( break; } + if (userStencilAvailable == JNI_TRUE) + { + if (stencilEnable == JNI_TRUE) + { + /* + glEnable(GL_STENCIL_TEST); + + glStencilOp( getStencilOpValue(stencilFailOp), + getStencilOpValue(stencilZFailOp), + getStencilOpValue(stencilZPassOp)); + + glStencilFunc(getFunctionValue(stencilFunction), + stencilReferenceValue, stencilCompareMask); + glStencilMask(stencilWriteMask); + */ + + } else + { + // glDisable(GL_STENCIL_TEST); + } + } + } |