VirtualBox

Ignore:
Timestamp:
Apr 28, 2010 11:27:18 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60789
Message:

crOpenGL: extra check and warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_glsl.c

    r28800 r28861  
    2828    CRContext *g = GetCurrentContext();
    2929
     30    if (!g)
     31    {
     32        crWarning("crStateGetShaderObj called without current ctx");
     33    }
     34
    3035    return !g ? NULL : (CRGLSLShader *) crHashtableSearch(g->glsl.shaders, id);
    3136}
     
    3439{
    3540    CRContext *g = GetCurrentContext();
     41
     42    if (!g)
     43    {
     44        crWarning("crStateGetProgramObj called without current ctx");
     45    }
    3646
    3747    return !g ? NULL : (CRGLSLProgram *) crHashtableSearch(g->glsl.programs, id);
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