Changeset 1234
- Timestamp:
- Apr 18, 2012, 1:20:55 AM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gpu/vertexbuffer.cpp
r1231 r1234 304 304 elements[n].Offset = 0; 305 305 for (int i = 0; i < n; i++) 306 elements[n].Offset += m_streams[n].size; 306 if (m_streams[i].index == m_streams[n].index) 307 elements[n].Offset += m_streams[i].size; 307 308 308 309 if (m_streams[n].stream_type >= 0 -
trunk/src/gradient.cpp
r1233 r1234 155 155 " int x = (int)in_FragCoord.x;" 156 156 " int y = (int)in_FragCoord.y;" 157 #if defined USE_D3D9 || defined _XBOX 158 " float t = bayer[int(frac(x * 0.25) * 4.0)]" 159 " [int(frac(y * 0.25) * 4.0)];\n" 160 #else 157 161 // FIXME: we cannot address this matrix directly on the PS3 158 162 " float t = bayer[0][0];\n" 159 " t = (t + 0.5) / 17.0 + z - x;\n" 163 #endif 164 " t = (t + 0.5) / 17.0;\n" 160 165 " col.x += frac(t - col.x) - t;\n" 161 166 " col.y += frac(t - col.y) - t;\n" -
trunk/src/scene.cpp
r1233 r1234 101 101 Scene::~Scene() 102 102 { 103 #if defined USE_D3D9 || defined _XBOX104 /* FIXME: TODO */105 #else106 103 /* FIXME: this must be done while the GL context is still active. 107 104 * Change the code architecture to make sure of that. */ … … 110 107 delete data->bufs[i]; 111 108 free(data->bufs); 112 #endif113 109 delete data->m_vdecl; 114 110 delete data; … … 382 378 data->bufs[buf + 1]->Unlock(); 383 379 384 stdshader->Bind();385 386 380 /* Bind texture */ 387 381 data->tiles[i].tileset->Bind(); … … 393 387 394 388 /* Draw arrays */ 395 #if 0396 389 data->m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, (n - i) * 2); 397 #endif398 390 data->m_vdecl->Unbind(); 399 391 data->tiles[i].tileset->Unbind();
Note: See TracChangeset
for help on using the changeset viewer.