VirtualBox

Changeset 3453

Show
Ignore:
Timestamp:
07/05/07 13:51:47 (2 years ago)
Author:
vboxsync
Message:

updates for opengl extensions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/VBox/HostServices/VBoxOGLOp.h

    r3431 r3453  
    228228/* Note: sync operations always set the last error */ 
    229229/* sync operation that returns a value */ 
     230#define VBOX_OGL_GEN_SYNC_OP_RET(rettype, op)                                                       \ 
     231    VBOX_OGL_GEN_OP(op)                                                                             \ 
     232    rettype retval = (rettype)VBoxOGLFlush(); 
     233 
    230234#define VBOX_OGL_GEN_SYNC_OP1_RET(rettype, op, p1)                                                  \ 
    231235    VBOX_OGL_GEN_OP1(op, p1)                                                                        \ 
     
    744748/* Note: sync operations always set the last error */ 
    745749/* sync operation that returns a value */ 
     750#define VBOX_OGL_GEN_SYNC_OP_RET(rettype, op)                                                   \ 
     751    OGL_CMD(op, 0);                                                                             \ 
     752    pClient->lastretval = gl##op(); 
     753 
    746754#define VBOX_OGL_GEN_SYNC_OP1_RET(rettype, op, Type1)                                              \ 
    747755    OGL_CMD(op, 1);                                                                             \ 
     
    12551263    VBOX_OGL_OP_GetTexImage, 
    12561264 
     1265    /* Windows ICD exports */ 
    12571266    VBOX_OGL_OP_DrvReleaseContext, 
    12581267    VBOX_OGL_OP_DrvCreateContext, 
     
    12701279    VBOX_OGL_OP_DrvSetPixelFormat, 
    12711280    VBOX_OGL_OP_DrvSwapBuffers, 
     1281 
     1282    /* OpenGL Extensions */ 
     1283    VBOX_OGL_OP_wglSwapIntervalEXT, 
     1284    VBOX_OGL_OP_wglGetSwapIntervalEXT, 
    12721285 
    12731286    VBOX_OGL_OP_Last, 
     
    15351548    "glGetTexImage", 
    15361549 
     1550    /* Windows ICD exports */ 
    15371551    "DrvReleaseContext", 
    15381552    "DrvCreateContext", 
     
    15501564    "DrvSetPixelFormat", 
    15511565    "DrvSwapBuffers", 
     1566 
     1567    /* OpenGL Extensions */ 
     1568    "wglSwapIntervalEXT", 
     1569    "wglGetSwapIntervalEXT", 
    15521570}; 
    15531571#endif 
     
    18131831    vboxglGetTexImage, 
    18141832 
     1833    /* Windows ICD exports */ 
    18151834    vboxglDrvReleaseContext, 
    18161835    vboxglDrvCreateContext, 
     
    18281847    vboxglDrvSetPixelFormat, 
    18291848    vboxglDrvSwapBuffers, 
     1849 
     1850    /* OpenGL Extensions */ 
     1851    vboxwglSwapIntervalEXT, 
     1852    vboxwglGetSwapIntervalEXT, 
     1853 
    18301854}; 
    18311855#endif 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy