Changeset 2156
- Timestamp:
- Dec 20, 2012, 2:01:32 AM (10 years ago)
- Location:
- trunk/src/gpu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gpu/shader.cpp
r2097 r2156 327 327 #if defined USE_D3D9 || defined _XBOX 328 328 #elif !defined __CELLOS_LV2__ 329 ret.m_flags |= (uint64_t) 330 (uint32_t)glGetAttribLocation(data->prog_id, attr) << 32; 329 GLint l = glGetAttribLocation(data->prog_id, attr); 330 if (l < 0) 331 { 332 Log::Warn("tried to query invalid attribute: %s\n", attr); 333 l = 0; 334 } 335 ret.m_flags |= (uint64_t)(uint32_t)l << 32; 331 336 #else 332 337 /* FIXME: can we do this at all on the PS3? */ -
trunk/src/gpu/vertexbuffer.cpp
r2082 r2156 374 374 if (usage_index++ == index) 375 375 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 } 376 383 377 384 /* Now compute the stride and offset up to this stream index */
Note: See TracChangeset
for help on using the changeset viewer.