aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/d3d
diff options
context:
space:
mode:
Diffstat (limited to 'src/native/d3d')
-rw-r--r--src/native/d3d/D3dCtx.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/native/d3d/D3dCtx.cpp b/src/native/d3d/D3dCtx.cpp
index 9072a3f..3bc2afb 100644
--- a/src/native/d3d/D3dCtx.cpp
+++ b/src/native/d3d/D3dCtx.cpp
@@ -1303,6 +1303,17 @@ VOID D3dCtx::setCanvasProperty(JNIEnv *env, jobject obj)
id = env->GetFieldID(canvasCls, "textureHeightMax", "I");
env->SetIntField(obj, id, deviceInfo->maxTextureHeight);
+
+ if (deviceInfo->maxTextureDepth > 0) {
+ id = env->GetFieldID(canvasCls, "texture3DWidthMax", "I");
+ env->SetIntField(obj, id, deviceInfo->maxTextureWidth);
+
+ id = env->GetFieldID(canvasCls, "texture3DHeightMax", "I");
+ env->SetIntField(obj, id, deviceInfo->maxTextureHeight);
+
+ id = env->GetFieldID(canvasCls, "texture3DDepthMax", "I");
+ env->SetIntField(obj, id, deviceInfo->maxTextureDepth);
+ }
}
VOID D3dCtx::createVertexBuffer()