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 --- make/cgl-macosx.cfg | 6 +++--- make/stub_includes/macosx/window-system.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'make') diff --git a/make/cgl-macosx.cfg b/make/cgl-macosx.cfg index a933b36d9..b3eab2184 100644 --- a/make/cgl-macosx.cfg +++ b/make/cgl-macosx.cfg @@ -35,10 +35,10 @@ CustomCCode extern void updateContext(void* nsContext, void* nsView); CustomCCode extern void* updateContextRegister(void* nsContext, void* nsView); CustomCCode extern void updateContextUnregister(void* nsContext, void* nsView, void* updater); -CustomCCode extern void* createPBuffer(void* nsContext, int width, int height); +CustomCCode extern void* createPBuffer(int renderTarget, int width, int height); CustomCCode extern Bool destroyPBuffer(void* nsContext, void* pBuffer); -CustomCCode extern int bindPBuffer(void* nsContext, void* pBuffer); -CustomCCode extern void unbindPBuffer(void* nsContext, void* pBuffer, int pBufferTextureName); +CustomCCode extern void setContextPBuffer(void* nsContext, void* pBuffer); +CustomCCode extern void setContextTextureImageToPBuffer(void* nsContext, void* pBuffer, int colorBuffer); CustomCCode extern void* getProcAddress(const char *procName); diff --git a/make/stub_includes/macosx/window-system.c b/make/stub_includes/macosx/window-system.c index 2908b07be..4b3f95649 100644 --- a/make/stub_includes/macosx/window-system.c +++ b/make/stub_includes/macosx/window-system.c @@ -25,9 +25,9 @@ void updateContext(void* nsContext, void* nsView); void* updateContextRegister(void* nsContext, void* nsView); void updateContextUnregister(void* nsContext, void* nsView, void* updater); -void* createPBuffer(void* nsContext, int width, int height); +void* createPBuffer(int renderTarget, int width, int height); Bool destroyPBuffer(void* nsContext, void* pBuffer); -int bindPBuffer(void* nsContext, void* pBuffer); -void unbindPBuffer(void* nsContext, void* pBuffer, int pBufferTextureName); +void setContextPBuffer(void* nsContext, void* pBuffer); +void setContextTextureImageToPBuffer(void* nsContext, void* pBuffer, int colorBuffer); void* getProcAddress(const char *procName); -- cgit v1.2.3