JDK-5008032 : OGL: clean up function loading code
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-03-04
  • Updated: 2004-03-30
  • Resolved: 2004-03-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b45Fixed
Related Reports
Relates :  
Description
There are a number of problems with the current OGL function loading code.  We
dynamically load all necessary function symbols from libGL.so at startup, but
the code that performs this operation is rather verbose (it was autogenerated
originally, but since then it has been updated manually, which is error prone).
We can use macros to help simplify the function declarations and
initializations.  This code currently sits in the GLXFuncs.c file, but we could
easily reorganize this code to sit in a shared OGLFuncs.c file, so that it
will be easier to add the WGL pipeline.

Also, there are a number of (related) minor porting issues that should be
cleaned up as well with this fix, so that the current shared OGL native code
builds properly on Windows.  Mostly this involves adding a few explicit casts
in some places so that the Windows compiler doesn't complain.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta2 FIXED IN: tiger-beta2 INTEGRATED IN: tiger-b45 tiger-beta2
14-06-2004

EVALUATION Fix as described. This code should be changed in parallel with work on the new WGL pipeline, to ensure that these changes work well with WGL. Once this has been verified, we can putback these fixes and finish work on the WGL pipeline. ###@###.### 2004-03-04
04-03-2004