OLD | NEW |
1 #include "precompiled.h" | 1 #include "precompiled.h" |
2 // | 2 // |
3 // Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved. | 3 // Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved. |
4 // Use of this source code is governed by a BSD-style license that can be | 4 // Use of this source code is governed by a BSD-style license that can be |
5 // found in the LICENSE file. | 5 // found in the LICENSE file. |
6 // | 6 // |
7 | 7 |
8 // VertexDataManager.h: Defines the VertexDataManager, a class that | 8 // VertexDataManager.h: Defines the VertexDataManager, a class that |
9 // runs the Buffer translation process. | 9 // runs the Buffer translation process. |
10 | 10 |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 { | 259 { |
260 return GL_OUT_OF_MEMORY; | 260 return GL_OUT_OF_MEMORY; |
261 } | 261 } |
262 | 262 |
263 unsigned int streamOffset; | 263 unsigned int streamOffset; |
264 if (!buffer->storeRawData(attribs[i].mCurrentValue, required
Space, &streamOffset)) | 264 if (!buffer->storeRawData(attribs[i].mCurrentValue, required
Space, &streamOffset)) |
265 { | 265 { |
266 return GL_OUT_OF_MEMORY; | 266 return GL_OUT_OF_MEMORY; |
267 } | 267 } |
268 | 268 |
| 269 mCurrentValue[i][0] = attribs[i].mCurrentValue[0]; |
| 270 mCurrentValue[i][1] = attribs[i].mCurrentValue[1]; |
| 271 mCurrentValue[i][2] = attribs[i].mCurrentValue[2]; |
| 272 mCurrentValue[i][3] = attribs[i].mCurrentValue[3]; |
269 mCurrentValueOffsets[i] = streamOffset; | 273 mCurrentValueOffsets[i] = streamOffset; |
270 } | 274 } |
271 | 275 |
272 translated[i].storage = NULL; | 276 translated[i].storage = NULL; |
273 translated[i].vertexBuffer = mCurrentValueBuffer[i]->getVertexBu
ffer(); | 277 translated[i].vertexBuffer = mCurrentValueBuffer[i]->getVertexBu
ffer(); |
274 translated[i].serial = mCurrentValueBuffer[i]->getSerial(); | 278 translated[i].serial = mCurrentValueBuffer[i]->getSerial(); |
275 translated[i].divisor = 0; | 279 translated[i].divisor = 0; |
276 | 280 |
277 translated[i].attribute = &attribs[i]; | 281 translated[i].attribute = &attribs[i]; |
278 translated[i].stride = 0; | 282 translated[i].stride = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
291 { | 295 { |
292 buffer->promoteStaticUsage(count * attribs[i].typeSize()); | 296 buffer->promoteStaticUsage(count * attribs[i].typeSize()); |
293 } | 297 } |
294 } | 298 } |
295 } | 299 } |
296 | 300 |
297 return GL_NO_ERROR; | 301 return GL_NO_ERROR; |
298 } | 302 } |
299 | 303 |
300 } | 304 } |
OLD | NEW |