- 時間撮記:
- 2017-4-19 下午01:35:47 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/GuestHost/OpenGL/packer/pack_program.c
r63942 r66609 18 18 { 19 19 CR_GET_PACKER_CONTEXT(pc); 20 unsigned char *data_ptr ;20 unsigned char *data_ptr = NULL; 21 21 int packet_length = sizeof(int) + sizeof(target) + sizeof(index) + sizeof(num) + num * 4 * sizeof(GLdouble); 22 22 … … 36 36 { 37 37 CR_GET_PACKER_CONTEXT(pc); 38 unsigned char *data_ptr ;38 unsigned char *data_ptr = NULL; 39 39 int packet_length = sizeof(int) + sizeof(target) + sizeof(index) + sizeof(num) + num * 4 * sizeof(GLfloat); 40 40 … … 162 162 { 163 163 const int packet_length = 32; 164 unsigned char *data_ptr ;164 unsigned char *data_ptr = NULL; 165 165 CR_GET_PACKER_CONTEXT(pc); 166 166 … … 181 181 { 182 182 const int packet_length = 20 + len; 183 unsigned char *data_ptr ;183 unsigned char *data_ptr = NULL; 184 184 CR_GET_PACKER_CONTEXT(pc); 185 185 … … 208 208 { 209 209 CR_GET_PACKER_CONTEXT(pc); 210 unsigned char *data_ptr ;210 unsigned char *data_ptr = NULL; 211 211 int packet_length = 32 + len; 212 212 … … 228 228 { 229 229 CR_GET_PACKER_CONTEXT(pc); 230 unsigned char *data_ptr ;230 unsigned char *data_ptr = NULL; 231 231 int packet_length = 48 + len; 232 232 … … 263 263 { 264 264 CR_GET_PACKER_CONTEXT(pc); 265 unsigned char *data_ptr ;265 unsigned char *data_ptr = NULL; 266 266 int packet_length; 267 267 … … 291 291 int packet_length = 32 + len; 292 292 CR_GET_PACKER_CONTEXT(pc); 293 unsigned char *data_ptr ;293 unsigned char *data_ptr = NULL; 294 294 CR_GET_BUFFERED_POINTER(pc, packet_length); 295 295 WRITE_DATA(0, GLint, packet_length); … … 309 309 int packet_length = 32 + len; 310 310 CR_GET_PACKER_CONTEXT(pc); 311 unsigned char *data_ptr ;311 unsigned char *data_ptr = NULL; 312 312 CR_GET_BUFFERED_POINTER(pc, packet_length); 313 313 WRITE_DATA(0, GLint, packet_length); … … 326 326 void PACK_APIENTRY crPackDeleteProgramsARB(GLsizei n, const GLuint *ids) 327 327 { 328 unsigned char *data_ptr ;328 unsigned char *data_ptr = NULL; 329 329 int packet_length = sizeof(GLenum) + sizeof(n) + n * sizeof(*ids); 330 330 … … 344 344 { 345 345 const int packet_length = 20 + len; 346 unsigned char *data_ptr ;346 unsigned char *data_ptr = NULL; 347 347 CR_GET_PACKER_CONTEXT(pc); 348 348 … … 367 367 { 368 368 CR_GET_PACKER_CONTEXT(pc); 369 unsigned char *data_ptr ;369 unsigned char *data_ptr = NULL; 370 370 CR_GET_BUFFERED_POINTER(pc, 8); 371 371 pc->current.c.vertexAttrib.b4[index] = data_ptr + 4; … … 383 383 { 384 384 CR_GET_PACKER_CONTEXT(pc); 385 unsigned char *data_ptr ;385 unsigned char *data_ptr = NULL; 386 386 CR_GET_BUFFERED_POINTER(pc, 20); 387 387 pc->current.c.vertexAttrib.i4[index] = data_ptr + 4; … … 399 399 { 400 400 CR_GET_PACKER_CONTEXT(pc); 401 unsigned char *data_ptr ;401 unsigned char *data_ptr = NULL; 402 402 CR_GET_BUFFERED_POINTER(pc, 12); 403 403 pc->current.c.vertexAttrib.s4[index] = data_ptr + 4; … … 415 415 { 416 416 CR_GET_PACKER_CONTEXT(pc); 417 unsigned char *data_ptr ;417 unsigned char *data_ptr = NULL; 418 418 CR_GET_BUFFERED_POINTER(pc, 8); 419 419 pc->current.c.vertexAttrib.ub4[index] = data_ptr + 4; … … 431 431 { 432 432 CR_GET_PACKER_CONTEXT(pc); 433 unsigned char *data_ptr ;433 unsigned char *data_ptr = NULL; 434 434 CR_GET_BUFFERED_POINTER(pc, 20); 435 435 pc->current.c.vertexAttrib.ui4[index] = data_ptr + 4; … … 447 447 { 448 448 CR_GET_PACKER_CONTEXT(pc); 449 unsigned char *data_ptr ;449 unsigned char *data_ptr = NULL; 450 450 CR_GET_BUFFERED_POINTER(pc, 12); 451 451 pc->current.c.vertexAttrib.s4[index] = data_ptr + 4; … … 463 463 { 464 464 CR_GET_PACKER_CONTEXT(pc); 465 unsigned char *data_ptr ;465 unsigned char *data_ptr = NULL; 466 466 CR_GET_BUFFERED_POINTER(pc, 8); 467 467 pc->current.c.vertexAttrib.b4[index] = data_ptr + 4; … … 479 479 { 480 480 CR_GET_PACKER_CONTEXT(pc); 481 unsigned char *data_ptr ;481 unsigned char *data_ptr = NULL; 482 482 CR_GET_BUFFERED_POINTER(pc, 20); 483 483 pc->current.c.vertexAttrib.i4[index] = data_ptr + 4; … … 495 495 { 496 496 CR_GET_PACKER_CONTEXT(pc); 497 unsigned char *data_ptr ;497 unsigned char *data_ptr = NULL; 498 498 CR_GET_BUFFERED_POINTER(pc, 20); 499 499 pc->current.c.vertexAttrib.ui4[index] = data_ptr + 4; … … 511 511 { 512 512 CR_GET_PACKER_CONTEXT(pc); 513 unsigned char *data_ptr ;513 unsigned char *data_ptr = NULL; 514 514 CR_GET_BUFFERED_POINTER(pc, 12); 515 515 pc->current.c.vertexAttrib.s4[index] = data_ptr + 4; … … 528 528 { 529 529 CR_GET_PACKER_CONTEXT(pc); 530 unsigned char *data_ptr ;530 unsigned char *data_ptr = NULL; 531 531 CR_GET_BUFFERED_POINTER(pc, 8); 532 532 pc->current.c.vertexAttrib.ub4[index] = data_ptr + 4;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器