VirtualBox

Changeset 38989 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Oct 13, 2011 3:44:08 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74387
Message:

crOpenGL: reset last opengl error on context creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_context.c

    r37946 r38989  
    103103                break;
    104104            }
     105        }
     106    }
     107
     108    {
     109        /* As we're using only one host context to serve all client contexts, newly created context will still
     110         * hold last error value from any previous failed opengl call. Proper solution would be to redirect any
     111         * client glGetError calls to our state tracker, but right now it's missing quite a lot of checks and doesn't
     112         * reflect host driver/gpu specific issues. Thus we just reset last opengl error at context creation.
     113         */
     114        GLint err;
     115
     116        err = cr_server.head_spu->dispatch_table.GetError();
     117        if (err!=GL_NO_ERROR)
     118        {
     119            crWarning("Cleared gl error %#x on context creation", err);
    105120        }
    106121    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette