VirtualBox

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


Ignore:
Timestamp:
Jul 4, 2011 5:59:17 PM (13 years ago)
Author:
vboxsync
Message:

crOpenGL: fix warning

File:
1 edited

Legend:

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

    r37613 r37771  
    904904        tobj->target = target;
    905905    }
    906     else if (tobj->target != target)
     906    else if ((tobj->target != target)
     907             && !((target==GL_TEXTURE_RECTANGLE_NV && tobj->target==GL_TEXTURE_2D)
     908                  ||(target==GL_TEXTURE_2D && tobj->target==GL_TEXTURE_RECTANGLE_NV)))
    907909    {
    908910        crWarning( "You called glBindTexture with a target of 0x%x, but the texture you wanted was target 0x%x [1D: %x 2D: %x 3D: %x cube: %x]", (int) target, (int) tobj->target, GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_CUBE_MAP );
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