From fe567f8d89d6b4aa45f34b4f2557db5db0b158da Mon Sep 17 00:00:00 2001
From: Michael Bien <mbien@fh-landshut.de>
Date: Mon, 29 Mar 2010 15:47:58 +0200
Subject: modifications due to refactorings in gluegen and jogl.

---
 src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java | 2 +-
 src/com/mbien/opencl/demos/julia3d/Renderer.java                     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/com/mbien/opencl')

diff --git a/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java b/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java
index 263c1a6..36e67bb 100644
--- a/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java
+++ b/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java
@@ -18,7 +18,7 @@ import javax.media.opengl.glu.gl2.GLUgl2;
 import javax.swing.JFrame;
 import javax.swing.SwingUtilities;
 
-import static com.jogamp.opengl.util.BufferUtil.*;
+import static com.jogamp.gluegen.runtime.Buffers.*;
 
 /**
  * JOCL - JOGL interoperability example.
diff --git a/src/com/mbien/opencl/demos/julia3d/Renderer.java b/src/com/mbien/opencl/demos/julia3d/Renderer.java
index db9c5a7..5eaf219 100644
--- a/src/com/mbien/opencl/demos/julia3d/Renderer.java
+++ b/src/com/mbien/opencl/demos/julia3d/Renderer.java
@@ -1,7 +1,6 @@
 package com.mbien.opencl.demos.julia3d;
 
 import com.mbien.opencl.demos.julia3d.structs.RenderingConfig;
-import com.jogamp.opengl.util.BufferUtil;
 import com.jogamp.opengl.util.awt.TextRenderer;
 import java.awt.Dimension;
 import java.awt.Font;
@@ -16,6 +15,7 @@ import javax.media.opengl.GLProfile;
 import javax.media.opengl.awt.GLCanvas;
 import javax.swing.JFrame;
 
+import static com.jogamp.gluegen.runtime.Buffers.*;
 import static javax.media.opengl.GL2.*;
 import static java.lang.String.*;
 
@@ -43,7 +43,7 @@ public class Renderer implements GLEventListener {
 
         timer = new Timer();
 
-        juliaSlice = BufferUtil.newFloatBuffer(MU_RECT_SIZE * MU_RECT_SIZE * 4);
+        juliaSlice = newDirectFloatBuffer(MU_RECT_SIZE * MU_RECT_SIZE * 4);
 
         canvas = new GLCanvas(new GLCapabilities(GLProfile.get(GLProfile.GL2)));
         canvas.addGLEventListener(this);
-- 
cgit v1.2.3