aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/native/ogl/Canvas3D.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/native/ogl/Canvas3D.c b/src/native/ogl/Canvas3D.c
index 1e41934..026d17d 100644
--- a/src/native/ogl/Canvas3D.c
+++ b/src/native/ogl/Canvas3D.c
@@ -1147,7 +1147,7 @@ jlong JNICALL Java_javax_media_j3d_NativePipeline_createNewContext(
}
}
- if (SetPixelFormat(hdc, pixelFormat, NULL)) {
+ if (SetPixelFormat(hdc, PixelFormatID, NULL)) {
printErrorMessage("Canvas3D_createNewContext: Failed in SetPixelFormat");
return 0;
}