diff options
Diffstat (limited to 'src/native/d3d/Attributes.cpp')
-rw-r--r-- | src/native/d3d/Attributes.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/native/d3d/Attributes.cpp b/src/native/d3d/Attributes.cpp index 9540aac..e98697f 100644 --- a/src/native/d3d/Attributes.cpp +++ b/src/native/d3d/Attributes.cpp @@ -2534,9 +2534,7 @@ void JNICALL Java_javax_media_j3d_NativePipeline_updateTexture3DImage( jint dataType, jobject data, jboolean useAutoMipMap) -{ - /* Note: useAutoMipMap is not use instead numLevel will be use for d3d pipe */ - +{ GetDevice(); if (d3dCtx->deviceInfo->maxTextureDepth <= 0) { @@ -2577,7 +2575,7 @@ void JNICALL Java_javax_media_j3d_NativePipeline_updateTexture3DImage( if (surf == NULL) { surf = createVolumeTexture(d3dCtx, numLevels, textureFormat, - width, height, depth); + width, height, depth, useAutoMipMap); if (surf == NULL) { return; } @@ -2947,9 +2945,7 @@ void JNICALL Java_javax_media_j3d_NativePipeline_updateTextureCubeMapImage( jint dataType, jobject data, jboolean useAutoMipMap) -{ - /* Note: useAutoMipMap is not use instead numLevel will be use for d3d pipe */ - +{ GetDevice(); if (d3dCtx->texUnitStage >= d3dCtx->bindTextureIdLen) { @@ -2987,7 +2983,7 @@ void JNICALL Java_javax_media_j3d_NativePipeline_updateTextureCubeMapImage( if (surf == NULL) { // Need to create surface surf = createCubeMapTexture(d3dCtx, numLevels, textureFormat, - width, height); + width, height, useAutoMipMap); if (surf == NULL) { return; } |