aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Rushforth <[email protected]>2004-10-01 18:01:03 +0000
committerKevin Rushforth <[email protected]>2004-10-01 18:01:03 +0000
commitcf6b1b2ae2b48e46c6e09932902c0fd72e24f501 (patch)
treec3bcf8eac2ce04fc8dfbdb05b3d649ecdc8f5446
parenteced19d79a943c18f54dc7cbe693243e5953e792 (diff)
Issue number: 74
Obtained from: miles Submitted by: kcr Reviewed by: kcr Fix for Issue 74 : Texture/color math difference (D3D vs OGL) git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@51 ba19aa83-45c5-6ac9-afd3-db810772062c
-rw-r--r--src/native/d3d/Attributes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/native/d3d/Attributes.cpp b/src/native/d3d/Attributes.cpp
index 7798226..8f0bc3c 100644
--- a/src/native/d3d/Attributes.cpp
+++ b/src/native/d3d/Attributes.cpp
@@ -1265,7 +1265,7 @@ void JNICALL Java_javax_media_j3d_TextureAttributesRetained_updateCombinerNative
device->SetTextureStageState(ts, D3DTSS_COLOROP,
- combineFunctionTable[(combineRgbMode << 2) + combineRgbScale]);
+ combineFunctionTable[(combineRgbMode << 2) + combineRgbScale - 1]);
if (combineRgbMode != javax_media_j3d_TextureAttributes_COMBINE_INTERPOLATE) {
device->SetTextureStageState(ts, D3DTSS_COLORARG1,
@@ -1284,7 +1284,7 @@ void JNICALL Java_javax_media_j3d_TextureAttributesRetained_updateCombinerNative
}
device->SetTextureStageState(ts, D3DTSS_ALPHAOP,
- combineFunctionTable[(combineAlphaMode << 2) + combineAlphaScale]);
+ combineFunctionTable[(combineAlphaMode << 2) + combineAlphaScale - 1]);
if (combineAlphaMode != javax_media_j3d_TextureAttributes_COMBINE_INTERPOLATE) {
device->SetTextureStageState(ts, D3DTSS_ALPHAARG1,