Changeset 1864


Ignore:
Timestamp:
Sep 3, 2012, 2:41:01 PM (7 years ago)
Author:
sam
Message:

gpu: do not try to call glVertexAttribIPointer if Glew did not find it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gpu/vertexbuffer.cpp

    r1688 r1864  
    394394             || tlut[type_index].type == GL_DOUBLE
    395395             || tlut[type_index].type == GL_BYTE
    396              || tlut[type_index].type == GL_UNSIGNED_BYTE)
     396             || tlut[type_index].type == GL_UNSIGNED_BYTE
     397#       if defined USE_GLEW
     398             /* If this is not available, don't use it */
     399             || !glVertexAttribIPointer
     400#       endif
     401             || false)
    397402        {
    398403            /* Normalize unsigned bytes by default, because it's usually
     
    427432                           stride, (GLvoid const *)(uintptr_t)offset);
    428433            break;
     434        default:
     435            Log::Error("vertex usage %d is not supported yet\n");
     436            break;
    429437        }
    430438#   endif
Note: See TracChangeset for help on using the changeset viewer.