VirtualBox

Changeset 95751 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Jul 20, 2022 11:47:45 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152461
Message:

Devices/Graphics: Switch to new OpenGL headers, bugref:8515

Location:
trunk/src/VBox/Devices/Graphics
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/.scm-settings

    r95148 r95751  
    6969
    7070/vmsvga_glext/*.h: --external-copyright --no-convert-tabs --no-strip-trailing-blanks
     71/vmsvga_glext-new/*.h: --external-copyright --no-convert-tabs --no-strip-trailing-blanks
    7172
    7273/DevVGATmpl.h:                          --no-fix-header-guards
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-glLdr.h

    r93115 r95751  
    4141# define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED
    4242# include <OpenGL/gl.h>
    43 # include <OpenGL/glext.h>
    4443# include "DevVGA-SVGA3d-cocoa.h"
    4544// HACK
     
    6059# include <GL/gl.h>
    6160# include <GL/glx.h>
    62 # include <GL/glext.h>
    6361# define VBOX_VMSVGA3D_GL_HACK_LEVEL 0x103
    6462#endif
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-internal.h

    r95008 r95751  
    6262# define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED
    6363# include <OpenGL/gl.h>
    64 # include <OpenGL/glext.h>
    6564# include "DevVGA-SVGA3d-cocoa.h"
    6665/* work around conflicting definition of GLhandleARB in VMware's glext.h */
     
    7069typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
    7170typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params);
     71# if 0
    7272# define GL_RGBA_S3TC 0x83A2
    7373# define GL_ALPHA8_EXT 0x803c
     
    7777# define GL_LUMINANCE8_ALPHA8_EXT 0x8045
    7878# define GL_INT_2_10_10_10_REV 0x8D9F
     79# endif
    7980
    8081#else
     
    8384# include <GL/gl.h>
    8485# include <GL/glx.h>
    85 # include <GL/glext.h>
    8686# define VBOX_VMSVGA3D_GL_HACK_LEVEL 0x103
    8787#endif
    8888
    8989#ifdef VMSVGA3D_OPENGL
     90# ifndef __glext_h__
     91#  undef GL_GLEXT_VERSION    /** @todo r=bird: We include GL/glext.h above which also defines this and we'll end up with
     92                              * a clash if the system one does not use the same header guard as ours.  So, I'm wondering
     93                              * whether this include is really needed, and if it is, whether we should use a unique header
     94                              * guard macro on it, so we'll have the same problems everywhere... */
     95# endif
    9096# include "vmsvga_glext/glext.h"
    9197# include "shaderlib/shaderlib.h"
Note: See TracChangeset for help on using the changeset viewer.

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