VirtualBox

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


Ignore:
Timestamp:
May 20, 2013 12:17:39 PM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: texture support fixes

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_special

    r45008 r46174  
    126126DeleteBuffersARB
    127127StringMarkerGREMEDY
     128GenTextures
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_texture.c

    r44529 r46174  
    4040}
    4141
     42void PACKSPU_APIENTRY packspu_GenTextures( GLsizei n, GLuint * textures )
     43{
     44    GET_THREAD(thread);
     45    int writeback = 1;
     46    unsigned int i;
     47    if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))
     48    {
     49        crError( "packspu_GenTextures doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!" );
     50    }
     51    if (pack_spu.swap)
     52    {
     53        crPackGenTexturesSWAP( n, textures, &writeback );
     54    }
     55    else
     56    {
     57        crPackGenTextures( n, textures, &writeback );
     58    }
     59    packspuFlush( (void *) thread );
     60    CRPACKSPU_WRITEBACK_WAIT(thread, writeback);
     61    if (pack_spu.swap)
     62    {
     63        for (i = 0 ; i < (unsigned int) n ; i++)
     64        {
     65            textures[i] = SWAP32(textures[i]);
     66        }
     67    }
     68
     69    crStateRegTextures(n, textures);
     70}
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