VirtualBox

Ignore:
Timestamp:
Aug 8, 2014 6:32:29 PM (10 years ago)
Author:
vboxsync
Message:

crOpenGL: missing GetErr

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox

  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c

    r52260 r52328  
    530530    }
    531531    crPackChromiumParameteriCR(target, value);
     532}
     533
     534GLenum PACKSPU_APIENTRY packspu_GetError( void )
     535{
     536    GET_THREAD(thread);
     537    int writeback = 1;
     538    GLenum return_val = (GLenum) 0;
     539    CRContext *pCurState = crStateGetCurrent();
     540
     541    if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))
     542    {
     543        crError( "packspu_GetError doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!" );
     544    }
     545    if (pack_spu.swap)
     546    {
     547        crPackGetErrorSWAP( &return_val, &writeback );
     548    }
     549    else
     550    {
     551        crPackGetError( &return_val, &writeback );
     552    }
     553
     554#ifdef DEBUG_misha
     555    if (pCurState->lists.currentIndex)
     556    {
     557        WARN(("GetError called in DisplayList"));
     558    }
     559#endif
     560
     561    if (!pCurState->lists.currentIndex || !(g_u32VBoxHostCaps & CR_VBOX_CAP_CMDBLOCKS))
     562    {
     563        packspuFlush( (void *) thread );
     564        CRPACKSPU_WRITEBACK_WAIT(thread, writeback);
     565        if (pack_spu.swap)
     566        {
     567            return_val = (GLenum) SWAP32(return_val);
     568        }
     569    }
     570    else
     571    {
     572        return_val = GL_NO_ERROR;
     573    }
     574
     575    return return_val;
    532576}
    533577
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_special

    r52260 r52328  
    136136NewList
    137137EndList
     138GetError
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