VirtualBox

Changeset 56946 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 15, 2015 6:52:00 PM (9 years ago)
Author:
vboxsync
Message:

Host 3D: Display Lists: fix list IDs translation on crServer layer; glCallLists() passed simple local tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_lists.c

    r56566 r56946  
    124124
    125125
     126#ifndef VBOX_WITH_CR_DISPLAY_LISTS
    126127/**
    127128 * Translate an array of display list IDs from various datatypes to GLuint
     
    224225    }
    225226}
    226 
     227#endif
    227228
    228229void SERVER_DISPATCH_APIENTRY
    229230crServerDispatchCallLists( GLsizei n, GLenum type, const GLvoid *lists )
    230231{
     232#ifndef VBOX_WITH_CR_DISPLAY_LISTS
    231233    if (!cr_server.sharedDisplayLists) {
    232234        /* need to translate IDs */
     
    238240        type = GL_UNSIGNED_INT;
    239241    }
     242#endif
    240243
    241244    if (cr_server.curClient->currentCtxInfo->pContext->lists.mode == 0) {
     
    250253    }
    251254
     255#ifndef VBOX_WITH_CR_DISPLAY_LISTS
    252256    if (!cr_server.sharedDisplayLists) {
    253257        crFree((void *) lists);  /* malloc'd above */
    254258    }
     259#endif
    255260}
    256261
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