VirtualBox

Changeset 20476 in vbox


Ignore:
Timestamp:
Jun 11, 2009 2:46:20 PM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: fix vertex arrays and glsl interaction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/array/arrayspu.c

    r16074 r20476  
    640640}
    641641
    642 
     642/*@todo: it's a hack, as GLSL shouldn't blindly reuse this bit from nv_vertex_program*/
     643static void ARRAYSPU_APIENTRY arrayspu_UseProgram(GLuint program)
     644{
     645    crStateGetCurrent()->program.vpEnabled = program>0;
     646    array_spu.child.UseProgram(program);
     647}
    643648
    644649static void ARRAYSPU_APIENTRY
     
    887892    { "MakeCurrent", (SPUGenericFunction) arrayspu_MakeCurrent},
    888893    { "DestroyContext", (SPUGenericFunction) arrayspu_DestroyContext},
     894    { "UseProgram", (SPUGenericFunction) arrayspu_UseProgram},
    889895    { NULL, NULL }
    890896};
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