aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/d3d/RasterRetained.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/native/d3d/RasterRetained.cpp')
-rw-r--r--src/native/d3d/RasterRetained.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/native/d3d/RasterRetained.cpp b/src/native/d3d/RasterRetained.cpp
index 7886868..a1606f3 100644
--- a/src/native/d3d/RasterRetained.cpp
+++ b/src/native/d3d/RasterRetained.cpp
@@ -102,7 +102,7 @@ void JNICALL Java_javax_media_j3d_RasterRetained_execute(JNIEnv *env,
D3dImageComponent* d3dImage =
D3dImageComponent::find(&RasterList, d3dCtx, hashCode);
- LPDIRECT3DTEXTURE8 surf = NULL ;
+ LPDIRECT3DTEXTURE9 surf = NULL ;
if ((d3dImage == NULL) || (d3dImage->surf == NULL)) {
@@ -200,7 +200,7 @@ void JNICALL Java_javax_media_j3d_RasterRetained_execute(JNIEnv *env,
if (FAILED(hr)) {
if (debug) {
printf("[Java3D] Fail to get depth stencil surface %s\n",
- DXGetErrorString8(hr));
+ DXGetErrorString9(hr));
}
return;
}
@@ -213,8 +213,8 @@ void JNICALL Java_javax_media_j3d_RasterRetained_execute(JNIEnv *env,
intData_array, NULL);
copyDepthToSurface(d3dCtx,
device,
- screenCoord.sx,
- screenCoord.sy,
+ (int)(screenCoord.sx),
+ (int)(screenCoord.sy),
x_offset, y_offset,
w, h,width, height,
intData, d3dCtx->depthStencilSurface);
@@ -230,8 +230,8 @@ void JNICALL Java_javax_media_j3d_RasterRetained_execute(JNIEnv *env,
floatData_array, NULL);
copyDepthToSurface(d3dCtx,
device,
- screenCoord.sx,
- screenCoord.sy,
+ (jint)(screenCoord.sx),
+ (jint)(screenCoord.sy),
x_offset, y_offset,
w, h, width, height,
floatData, d3dCtx->depthStencilSurface);