VirtualBox

Changeset 39012 in vbox


Ignore:
Timestamp:
Oct 18, 2011 8:11:32 AM (13 years ago)
Author:
vboxsync
Message:

crOpenGL: alloc buffer of proper size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_glsl.c

    r33988 r39012  
    8787        GET_THREAD(thread);
    8888        int writeback = 1;
    89         GLsizei maxcbData = 16*1024*sizeof(char);
     89        GLsizei maxcbData;
    9090        GLsizei *pData;
     91        GLint mu;
     92
     93        packspu_GetIntegerv(GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB, &mu);
     94        maxcbData = 16*mu*sizeof(char);
    9195
    9296        pData = (GLsizei *) crAlloc(maxcbData+sizeof(GLsizei));
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