From 5f51f9c91e021c1fd1202899b531541b48cc97b9 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 20 May 2005 23:07:59 +0000 Subject: Attempt to make floating-point pbuffers portable git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@277 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/impl/macosx/MacOSXPbufferGLContext.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/net/java/games/jogl/impl/macosx') diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXPbufferGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXPbufferGLContext.java index d374230d9..33658957d 100644 --- a/src/net/java/games/jogl/impl/macosx/MacOSXPbufferGLContext.java +++ b/src/net/java/games/jogl/impl/macosx/MacOSXPbufferGLContext.java @@ -153,6 +153,10 @@ public class MacOSXPbufferGLContext extends MacOSXGLContext { // FIXME: do we need to do anything if the pbuffer is double-buffered? } + public int getFloatingPointMode() { + return GLPbuffer.APPLE_FLOAT; + } + private int getNextPowerOf2(int number) { if (((number-1) & number) == 0) { //ex: 8 -> 0b1000; 8-1=7 -> 0b0111; 0b1000&0b0111 == 0 -- cgit v1.2.3