VirtualBox

Changeset 44125 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Dec 13, 2012 6:02:35 PM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: fix guest state bits

Location:
trunk/src/VBox/Additions/common/crOpenGL/pack
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_bufferobject.c

    r42499 r44125  
    131131    crPackBindBufferARB(target, buffer);
    132132}
     133
     134void PACKSPU_APIENTRY packspu_GenBuffersARB( GLsizei n, GLuint * buffer )
     135{
     136    GET_THREAD(thread);
     137    int writeback = 1;
     138    if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))
     139    {
     140        crError( "packspu_GenBuffersARB doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!" );
     141    }
     142    if (pack_spu.swap)
     143    {
     144        crPackGenBuffersARBSWAP( n, buffer, &writeback );
     145    }
     146    else
     147    {
     148        crPackGenBuffersARB( n, buffer, &writeback );
     149    }
     150    packspuFlush( (void *) thread );
     151    CRPACKSPU_WRITEBACK_WAIT(thread, writeback);
     152
     153    crStateRegBuffers(n, buffer);
     154}
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_framebuffer.c

    r42499 r44125  
    9898    return status;
    9999}
     100
     101void PACKSPU_APIENTRY packspu_GenFramebuffersEXT( GLsizei n, GLuint * framebuffers )
     102{
     103    GET_THREAD(thread);
     104    int writeback = 1;
     105    if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))
     106    {
     107        crError( "packspu_GenFramebuffersEXT doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!" );
     108    }
     109    if (pack_spu.swap)
     110    {
     111        crPackGenFramebuffersEXTSWAP( n, framebuffers, &writeback );
     112    }
     113    else
     114    {
     115        crPackGenFramebuffersEXT( n, framebuffers, &writeback );
     116    }
     117    packspuFlush( (void *) thread );
     118    CRPACKSPU_WRITEBACK_WAIT(thread, writeback);
     119
     120    crStateRegFramebuffers(n, framebuffers);
     121}
     122
     123void PACKSPU_APIENTRY packspu_GenRenderbuffersEXT( GLsizei n, GLuint * renderbuffers )
     124{
     125    GET_THREAD(thread);
     126    int writeback = 1;
     127    if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))
     128    {
     129        crError( "packspu_GenRenderbuffersEXT doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!" );
     130    }
     131    if (pack_spu.swap)
     132    {
     133        crPackGenRenderbuffersEXTSWAP( n, renderbuffers, &writeback );
     134    }
     135    else
     136    {
     137        crPackGenRenderbuffersEXT( n, renderbuffers, &writeback );
     138    }
     139    packspuFlush( (void *) thread );
     140    CRPACKSPU_WRITEBACK_WAIT(thread, writeback);
     141
     142    crStateRegRenderbuffers(n, renderbuffers);
     143}
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_special

    r42499 r44125  
    120120CompressedTexSubImage2DARB
    121121CompressedTexSubImage3DARB
     122GenFramebuffersEXT
     123GenRenderbuffersEXT
     124GenBuffersARB
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