VirtualBox

Changeset 39206 in vbox for trunk/src/VBox/GuestHost/OpenGL


Ignore:
Timestamp:
Nov 4, 2011 3:16:16 PM (13 years ago)
Author:
vboxsync
Message:

Made OpenGL build against the Mac OS X 10.7 SDK. Some cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/GL/glext.h

    r20147 r39206  
    37183718#endif
    37193719
     3720/* VBox: HACK ALERT! When building the host side against Mac OS X 10.7 headers,
     3721   /Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gltypes.h
     3722   is included and it typedefs GLhandleARB differently.  In 10.6 and earlier,
     3723   gl.h was included instead of gltypes.h (new file) avoiding the conflicting
     3724   typedef in Headers/glext.h.
     3725
     3726   Since sizeof the gltypes.h typedef is 64-bit on 64-bit platforms, we're in
     3727   trouble if the type is used for anything important.  Fortunately, the
     3728   conflict only occurs in three files: renderspu_config.c, renderspu_cocoa.c
     3729   and renderspu_cocoa_helper.m. */
     3730#ifdef RT_OS_DARWIN
     3731# ifndef MAC_OS_X_VERSION_MIN_REQUIRED
     3732#  error "MAC_OS_X_VERSION_MIN_REQUIRED is not defined"
     3733# endif
     3734# if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 && defined(__gltypes_h_)
     3735#  define GLhandleARB VBoxGLhandleARB
     3736# endif
     3737#endif
     3738
    37203739#ifndef GL_ARB_shader_objects
    37213740/* GL types for handling shader object handles and program/shader text */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette