Changeset 1230
- Timestamp:
- Apr 15, 2012, 2:23:20 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gpu/vertexbuffer.cpp
r1228 r1230 232 232 if (type_index < 0 || type_index >= sizeof(tlut) / sizeof(*tlut)) 233 233 type_index = 0; 234 Log::Error("Size %d Type %d Stride %d offset %d\n", tlut[type_index].size,235 tlut[type_index].type,stride,offset);236 234 237 235 glVertexAttribPointer((GLint)reg, tlut[type_index].size, -
trunk/src/gpu/vertexbuffer.h
r1228 r1230 45 45 BlendIndices, 46 46 Normal, 47 P Size,47 PointSize, 48 48 TexCoord, 49 49 Tangent, -
trunk/src/scene.cpp
r1228 r1230 381 381 } 382 382 383 data->bufs[buf]->Unlock(); 384 data->bufs[buf + 1]->Unlock(); 385 383 386 stdshader->Bind(); 384 387 … … 392 395 /* Draw arrays */ 393 396 #if defined USE_D3D9 || defined _XBOX 394 g_d3ddevice->DrawPrimitive(D3DPT_TRIANGLELIST, 0, (n - i) * 6);397 g_d3ddevice->DrawPrimitive(D3DPT_TRIANGLELIST, 0, (n - i) * 2); 395 398 #else 396 399 glDrawArrays(GL_TRIANGLES, 0, (n - i) * 6); 397 400 398 401 # if defined HAVE_GL_2X && !defined __APPLE__ 399 glBindVertexArray(0);402 //glBindVertexArray(0); 400 403 # endif 401 404 # if !defined __CELLOS_LV2__ // Use cgGLEnableClientState etc. 402 405 # else 403 glDisableClientState(GL_VERTEX_ARRAY);404 glDisableClientState(GL_TEXTURE_COORD_ARRAY);406 //glDisableClientState(GL_VERTEX_ARRAY); 407 //glDisableClientState(GL_TEXTURE_COORD_ARRAY); 405 408 # endif 406 409 #endif
Note: See TracChangeset
for help on using the changeset viewer.