VirtualBox

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


Ignore:
Timestamp:
Oct 7, 2011 6:05:21 AM (13 years ago)
Author:
vboxsync
Message:

crOpenGL: show max supported uniforms in log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_init.c

    r36047 r38964  
    360360
    361361    render_spu.server = (CRServer *)(self->server);
     362
     363    {
     364        GLfloat version;
     365        version = crStrToFloat((char *) render_spu.ws.glGetString(GL_VERSION));
     366
     367        if (version>=2.f || crStrstr(render_spu.ws.glGetString(GL_EXTENSIONS), "GL_ARB_vertex_shader"))
     368        {
     369            GLint mu=0;
     370            render_spu.self.GetIntegerv(GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB, &mu);
     371            crInfo("Render SPU: GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB=%i", mu);
     372        }
     373    }
    362374}
    363375
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