Changeset 69046 in vbox for trunk/src/VBox/GuestHost/OpenGL
- Timestamp:
- Oct 11, 2017 4:11:23 PM (7 years ago)
- Location:
- trunk/src/VBox/GuestHost/OpenGL
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/packer/pack_bounds.c
r42028 r69046 37 37 switch ( len_aligned - len ) 38 38 { 39 case 3: *data_ptr++ = 0xff; /* FALLTHROUGH */40 case 2: *data_ptr++ = 0xff; /* FALLTHROUGH */41 case 1: *data_ptr++ = 0xff; /* FALLTHROUGH */39 case 3: *data_ptr++ = 0xff; RT_FALL_THRU(); 40 case 2: *data_ptr++ = 0xff; RT_FALL_THRU(); 41 case 1: *data_ptr++ = 0xff; RT_FALL_THRU(); 42 42 default: break; 43 43 } -
trunk/src/VBox/GuestHost/OpenGL/packer/pack_client.c
r65643 r69046 109 109 crPackVertexAttrib4usvARB(attr, usPtr); 110 110 break; 111 case 3: usv[2] = usPtr[2]; /* fall thru */112 case 2: usv[1] = usPtr[1]; /* fall thru */111 case 3: usv[2] = usPtr[2]; RT_FALL_THRU(); 112 case 2: usv[1] = usPtr[1]; RT_FALL_THRU(); 113 113 case 1: 114 114 usv[0] = usPtr[0]; … … 148 148 crPackVertexAttrib4ivARB(attr, iPtr); 149 149 break; 150 case 3: iv[2] = iPtr[2]; /* fall thru */151 case 2: iv[1] = iPtr[1]; /* fall thru */150 case 3: iv[2] = iPtr[2]; RT_FALL_THRU(); 151 case 2: iv[1] = iPtr[1]; RT_FALL_THRU(); 152 152 case 1: 153 153 iv[0] = iPtr[0]; … … 187 187 crPackVertexAttrib4uivARB(attr, uiPtr); 188 188 break; 189 case 3: uiv[2] = uiPtr[2]; /* fall thru */190 case 2: uiv[1] = uiPtr[1]; /* fall thru */189 case 3: uiv[2] = uiPtr[2]; RT_FALL_THRU(); 190 case 2: uiv[1] = uiPtr[1]; RT_FALL_THRU(); 191 191 case 1: 192 192 uiv[0] = uiPtr[0]; … … 244 244 crPackVertexAttrib4bvARB(attr, bPtr); 245 245 break; 246 case 3: bv[2] = bPtr[2]; /* fall thru */247 case 2: bv[1] = bPtr[1]; /* fall thru */246 case 3: bv[2] = bPtr[2]; RT_FALL_THRU(); 247 case 2: bv[1] = bPtr[1]; RT_FALL_THRU(); 248 248 case 1: 249 249 bv[0] = bPtr[0]; … … 283 283 crPackVertexAttrib4ubvARB(attr, ubPtr); 284 284 break; 285 case 3: ubv[2] = ubPtr[2]; /* fall thru */286 case 2: ubv[1] = ubPtr[1]; /* fall thru */285 case 3: ubv[2] = ubPtr[2]; RT_FALL_THRU(); 286 case 2: ubv[1] = ubPtr[1]; RT_FALL_THRU(); 287 287 case 1: 288 288 ubv[0] = ubPtr[0]; -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_buffer.c
r65643 r69046 195 195 break; /* OK */ 196 196 #endif 197 /* fall thru */197 RT_FALL_THRU(); 198 198 default: 199 199 crStateError(__LINE__, __FILE__, GL_INVALID_ENUM, "Invalid sfactor passed to glBlendFunc: %d", sfactor); … … 220 220 break; /* OK */ 221 221 #endif 222 /* fall thru */222 RT_FALL_THRU(); 223 223 default: 224 224 crStateError(__LINE__, __FILE__, GL_INVALID_ENUM, "Invalid dfactor passed to glBlendFunc: %d", dfactor); … … 291 291 break; /* OK */ 292 292 #endif 293 /* fall thru */293 RT_FALL_THRU(); 294 294 default: 295 295 crStateError(__LINE__, __FILE__, GL_INVALID_ENUM, "Invalid sfactorRGB passed to glBlendFuncSeparateEXT: %d", sfactorRGB); … … 317 317 break; /* OK */ 318 318 #endif 319 /* fall thru */319 RT_FALL_THRU(); 320 320 default: 321 321 crStateError(__LINE__, __FILE__, GL_INVALID_ENUM, "Invalid sfactorA passed to glBlendFuncSeparateEXT: %d", sfactorA); … … 345 345 break; /* OK */ 346 346 #endif 347 /* fall thru */347 RT_FALL_THRU(); 348 348 default: 349 349 crStateError(__LINE__, __FILE__, GL_INVALID_ENUM, "Invalid dfactorRGB passed to glBlendFuncSeparateEXT: %d", dfactorRGB); … … 373 373 break; /* OK */ 374 374 #endif 375 /* fall thru */375 RT_FALL_THRU(); 376 376 default: 377 377 crStateError(__LINE__, __FILE__, GL_INVALID_ENUM, "Invalid dfactorA passed to glBlendFuncSeparateEXT: %d", dfactorA); -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_lighting.c
r63942 r69046 533 533 l->ambient[0].b = param[2]; 534 534 l->ambient[0].a = param[3]; 535 /* FALLTHROUGH! */535 RT_FALL_THRU(); 536 536 case GL_BACK: 537 537 l->ambient[1].r = param[0]; … … 559 559 l->ambient[0].b = param[2]; 560 560 l->ambient[0].a = param[3]; 561 /* FALLTHROUGH! */561 RT_FALL_THRU(); 562 562 case GL_BACK: 563 563 l->ambient[1].r = param[0]; … … 570 570 return; 571 571 } 572 /* FALLTHROUGH! */572 RT_FALL_THRU(); 573 573 case GL_DIFFUSE : 574 574 switch (face) … … 585 585 l->diffuse[0].b = param[2]; 586 586 l->diffuse[0].a = param[3]; 587 /* FALLTHROUGH! */587 RT_FALL_THRU(); 588 588 case GL_BACK: 589 589 l->diffuse[1].r = param[0]; … … 611 611 l->specular[0].b = param[2]; 612 612 l->specular[0].a = param[3]; 613 /* FALLTHROUGH! */613 RT_FALL_THRU(); 614 614 case GL_BACK: 615 615 l->specular[1].r = param[0]; … … 637 637 l->emission[0].b = param[2]; 638 638 l->emission[0].a = param[3]; 639 /* FALLTHROUGH! */639 RT_FALL_THRU(); 640 640 case GL_BACK: 641 641 l->emission[1].r = param[0]; … … 663 663 case GL_FRONT_AND_BACK: 664 664 l->shininess[0] = *param; 665 /* FALLTHROUGH! */665 RT_FALL_THRU(); 666 666 case GL_BACK: 667 667 l->shininess[1] = *param; … … 684 684 l->indexes[0][1] = (GLint) param[1]; 685 685 l->indexes[0][2] = (GLint) param[2]; 686 /* FALLTHROUGH! */686 RT_FALL_THRU(); 687 687 case GL_BACK: 688 688 l->indexes[1][0] = (GLint) param[0]; -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_polygon.c
r65643 r69046 128 128 case GL_FRONT_AND_BACK: 129 129 p->frontMode = mode; 130 /* fall thru */130 RT_FALL_THRU(); 131 131 case GL_BACK: 132 132 p->backMode = mode;
Note:
See TracChangeset
for help on using the changeset viewer.