VirtualBox

Changeset 46173 in vbox for trunk/src/VBox/GuestHost/OpenGL


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

crOpenGL: proper support for GL_NONE,AUX,etc. for offscreen rendering

Location:
trunk/src/VBox/GuestHost/OpenGL
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_glstate.h

    r45910 r46173  
    265265{
    266266    /* override default draw and read buffers to be used for offscreen rendering */
    267     GLint idFBO;
     267    GLint idOverrrideFBO;
    268268    uint32_t cElements;
    269269    CRFBDataElement aElements[1];
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_server.h

    r45940 r46173  
    236236     * this is why we place some FBO stuff to the tail
    237237     * @todo: once we need to increment a saved state version, we could refactor this structure */
    238     GLuint iCurDrawBuffer;
    239     GLuint iCurReadBuffer;
     238    GLint iCurDrawBuffer;
     239    GLint iCurReadBuffer;
    240240
    241241    GLuint idDepthStencilRB;
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_diff.c

    r45800 r46173  
    255255
    256256    }
    257     else if (data->idFBO)
    258     {
    259         diff_api.BindFramebufferEXT(GL_READ_FRAMEBUFFER, data->idFBO);
     257    else if (data->idOverrrideFBO)
     258    {
     259        diff_api.BindFramebufferEXT(GL_READ_FRAMEBUFFER, data->idOverrrideFBO);
    260260        diff_api.ReadBuffer(GL_COLOR_ATTACHMENT0);
    261261    }
     
    393393            diff_api.DrawBuffer(to->framebufferobject.drawFB->drawbuffer[0]);
    394394        }
    395         else if (data->idFBO)
    396         {
    397             diff_api.BindFramebufferEXT(GL_DRAW_FRAMEBUFFER, data->idFBO);
     395        else if (data->idOverrrideFBO)
     396        {
     397            diff_api.BindFramebufferEXT(GL_DRAW_FRAMEBUFFER, data->idOverrrideFBO);
    398398            diff_api.DrawBuffer(GL_COLOR_ATTACHMENT0);
    399399        }
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