Ignore:
Timestamp:
Dec 20, 2012, 2:01:32 AM (7 years ago)
Author:
sam
Message:

gpu: warn when a vertex shader attribute isn’t found and do not crash
when a stream is not found in the vertex declaration at bind time.

File:
1 edited

Legend:

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

    r2082 r2156  
    374374                if (usage_index++ == index)
    375375                    break;
     376
     377        if (attr_index == m_count)
     378        {
     379            Log::Error("stream #%d with usage %x not found in declaration\n",
     380                       index, usage);
     381            attr_index = 0;
     382        }
    376383
    377384        /* Now compute the stride and offset up to this stream index */
Note: See TracChangeset for help on using the changeset viewer.