Changeset 821


Ignore:
Timestamp:
Aug 12, 2011, 6:33:23 PM (8 years ago)
Author:
sam
Message:

gl: do not call glDeleteBuffers with a zero-length list, it crashes on
the PS3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scene.cpp

    r792 r821  
    9393{
    9494    /* FIXME: this must be done while the GL context is still active.
    95      * Change the architecture to make sure of that. */
    96     glDeleteBuffers(data->nbufs, data->bufs);
     95     * Change the code architecture to make sure of that. */
     96    /* XXX: The test is necessary because of a crash with PSGL. */
     97    if (data->nbufs > 0)
     98        glDeleteBuffers(data->nbufs, data->bufs);
    9799#if defined HAVE_GL_2X
    98100    glDeleteVertexArrays(1, &data->vao);
Note: See TracChangeset for help on using the changeset viewer.