From be5d9ba85bad4cf845778d1bdcc4361d864a4604 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 29 Apr 2004 21:50:38 +0000 Subject: Fixed Issue 79: PBuffers on macintosh fail to glCopyTexSubImage2D git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@128 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/native/jogl/MacOSXWindowSystemInterface.m | 107 ++++---------------------- 1 file changed, 15 insertions(+), 92 deletions(-) (limited to 'src/native') diff --git a/src/native/jogl/MacOSXWindowSystemInterface.m b/src/native/jogl/MacOSXWindowSystemInterface.m index 7d2f317c9..0f7c5aa7e 100644 --- a/src/native/jogl/MacOSXWindowSystemInterface.m +++ b/src/native/jogl/MacOSXWindowSystemInterface.m @@ -155,54 +155,18 @@ void updateContextUnregister(void* context, void* view, void* updater) [contextUpdater release]; } -#ifndef USE_GL_TEXTURE_RECTANGLE_EXT -static int getNextPowerOf2(int number) +void* createPBuffer(int renderTarget, int width, int height) { - if (((number-1) & number) == 0) - { - //ex: 8 -> 0b1000; 8-1=7 -> 0b0111; 0b1000&0b0111 == 0 - return number; - } - int power = 0; - while (number > 0) - { - number = number>>1; - power++; - } - return (1< -- cgit v1.2.3