From eced19d79a943c18f54dc7cbe693243e5953e792 Mon Sep 17 00:00:00 2001 From: Chien Yang Date: Fri, 1 Oct 2004 01:04:36 +0000 Subject: With this fix Java 3D will require GLX 1.3 or higher to compile or run. 1) Fixed issue 20 - Off-screen rendering doesn't work on Linux. 2) Cleanup native chooseOglVisual code. git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@50 ba19aa83-45c5-6ac9-afd3-db810772062c --- src/native/d3d/Canvas3D.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/native/d3d') diff --git a/src/native/d3d/Canvas3D.cpp b/src/native/d3d/Canvas3D.cpp index c262335..2e5eea2 100644 --- a/src/native/d3d/Canvas3D.cpp +++ b/src/native/d3d/Canvas3D.cpp @@ -46,13 +46,13 @@ jboolean JNICALL Java_javax_media_j3d_Canvas3D_useSharedCtx( extern "C" JNIEXPORT -jlong JNICALL Java_javax_media_j3d_Canvas3D_createContext( +jlong JNICALL Java_javax_media_j3d_Canvas3D_createNewContext( JNIEnv *env, jobject obj, jlong display, jint window, jint vid, - jlong visInfo, + jlong fbConfigListPtr, jlong sharedCtx, jboolean isSharedCtx, jboolean offScreen) @@ -106,6 +106,7 @@ void JNICALL Java_javax_media_j3d_Canvas3D_createQueryContext( jlong display, jint window, jint vid, + jlong fbConfigListPtr, jboolean offScreen, jint width, jint height) @@ -821,7 +822,8 @@ jint JNICALL Java_javax_media_j3d_Canvas3D_createOffScreenBuffer( jobject obj, jlong ctx, jlong display, - jint vid, + jint window, + jlong fbConfigListPtr, jint width, jint height) { @@ -864,6 +866,7 @@ void JNICALL Java_javax_media_j3d_Canvas3D_destroyOffScreenBuffer( jobject obj, jlong ctx, jlong display, + jlong fbConfigListPtr, jint window) { // do nothing, since the old buffer will destory -- cgit v1.2.3