diff --git a/scripts/EmuIff.py b/scripts/EmuIff.py index 9cc6758..3443d5c 100644 --- a/scripts/EmuIff.py +++ b/scripts/EmuIff.py @@ -62,7 +62,7 @@ iffFormulae = { }, 'ImmAttr' : { 'entries' : [ 'glVertexAttrib(1|2|3|4)(N|)(b|d|f|i|s|ub|us)(v|)(ARB|)' ], - 'impl' : [ '_context->iff->Attr${m2}<${m1}>( _context, ${arg0plus} );', ], + 'prefix' : [ '_context->iff->Attr${m2}<${m1}>( _context, ${arg0plus} );', ], }, 'ImmFixedAttrf' : { 'entries' : [ 'gl(SecondaryColor|Color|Normal|FogCoord)(2|3|4)(d|f)(v|)(EXT|)?' ], diff --git a/src/regal/RegalDispatchEmu.cpp b/src/regal/RegalDispatchEmu.cpp index d277ebe..703d1b0 100644 --- a/src/regal/RegalDispatchEmu.cpp +++ b/src/regal/RegalDispatchEmu.cpp @@ -28573,27 +28573,6 @@ static void REGAL_CALL emu_glVertexAttrib1d(GLuint index, GLdouble x) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -28611,20 +28590,16 @@ static void REGAL_CALL emu_glVertexAttrib1d(GLuint index, GLdouble x) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<1>( _context, index, x ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib1d)(index, x); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib1d)(index, x); } static void REGAL_CALL emu_glVertexAttrib1dv(GLuint index, const GLdouble *v) @@ -28635,27 +28610,6 @@ static void REGAL_CALL emu_glVertexAttrib1dv(GLuint index, const GLdouble *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -28673,20 +28627,16 @@ static void REGAL_CALL emu_glVertexAttrib1dv(GLuint index, const GLdouble *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<1>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib1dv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib1dv)(index, v); } static void REGAL_CALL emu_glVertexAttrib1f(GLuint index, GLfloat x) @@ -28697,27 +28647,6 @@ static void REGAL_CALL emu_glVertexAttrib1f(GLuint index, GLfloat x) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -28735,20 +28664,16 @@ static void REGAL_CALL emu_glVertexAttrib1f(GLuint index, GLfloat x) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<1>( _context, index, x ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib1f)(index, x); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib1f)(index, x); } static void REGAL_CALL emu_glVertexAttrib1fv(GLuint index, const GLfloat *v) @@ -28759,27 +28684,6 @@ static void REGAL_CALL emu_glVertexAttrib1fv(GLuint index, const GLfloat *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -28797,20 +28701,16 @@ static void REGAL_CALL emu_glVertexAttrib1fv(GLuint index, const GLfloat *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<1>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib1fv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib1fv)(index, v); } static void REGAL_CALL emu_glVertexAttrib1s(GLuint index, GLshort x) @@ -28821,27 +28721,6 @@ static void REGAL_CALL emu_glVertexAttrib1s(GLuint index, GLshort x) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -28859,20 +28738,16 @@ static void REGAL_CALL emu_glVertexAttrib1s(GLuint index, GLshort x) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<1>( _context, index, x ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib1s)(index, x); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib1s)(index, x); } static void REGAL_CALL emu_glVertexAttrib1sv(GLuint index, const GLshort *v) @@ -28883,27 +28758,6 @@ static void REGAL_CALL emu_glVertexAttrib1sv(GLuint index, const GLshort *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -28921,20 +28775,16 @@ static void REGAL_CALL emu_glVertexAttrib1sv(GLuint index, const GLshort *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<1>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib1sv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib1sv)(index, v); } static void REGAL_CALL emu_glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y) @@ -28945,27 +28795,6 @@ static void REGAL_CALL emu_glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -28983,20 +28812,16 @@ static void REGAL_CALL emu_glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<2>( _context, index, x, y ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib2d)(index, x, y); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib2d)(index, x, y); } static void REGAL_CALL emu_glVertexAttrib2dv(GLuint index, const GLdouble *v) @@ -29007,27 +28832,6 @@ static void REGAL_CALL emu_glVertexAttrib2dv(GLuint index, const GLdouble *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29045,20 +28849,16 @@ static void REGAL_CALL emu_glVertexAttrib2dv(GLuint index, const GLdouble *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<2>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib2dv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib2dv)(index, v); } static void REGAL_CALL emu_glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y) @@ -29069,27 +28869,6 @@ static void REGAL_CALL emu_glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29107,20 +28886,16 @@ static void REGAL_CALL emu_glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<2>( _context, index, x, y ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib2f)(index, x, y); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib2f)(index, x, y); } static void REGAL_CALL emu_glVertexAttrib2fv(GLuint index, const GLfloat *v) @@ -29131,27 +28906,6 @@ static void REGAL_CALL emu_glVertexAttrib2fv(GLuint index, const GLfloat *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29169,20 +28923,16 @@ static void REGAL_CALL emu_glVertexAttrib2fv(GLuint index, const GLfloat *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<2>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib2fv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib2fv)(index, v); } static void REGAL_CALL emu_glVertexAttrib2s(GLuint index, GLshort x, GLshort y) @@ -29193,27 +28943,6 @@ static void REGAL_CALL emu_glVertexAttrib2s(GLuint index, GLshort x, GLshort y) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29231,20 +28960,16 @@ static void REGAL_CALL emu_glVertexAttrib2s(GLuint index, GLshort x, GLshort y) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<2>( _context, index, x, y ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib2s)(index, x, y); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib2s)(index, x, y); } static void REGAL_CALL emu_glVertexAttrib2sv(GLuint index, const GLshort *v) @@ -29255,27 +28980,6 @@ static void REGAL_CALL emu_glVertexAttrib2sv(GLuint index, const GLshort *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29293,20 +28997,16 @@ static void REGAL_CALL emu_glVertexAttrib2sv(GLuint index, const GLshort *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<2>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib2sv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib2sv)(index, v); } static void REGAL_CALL emu_glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z) @@ -29317,27 +29017,6 @@ static void REGAL_CALL emu_glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29355,20 +29034,16 @@ static void REGAL_CALL emu_glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<3>( _context, index, x, y, z ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib3d)(index, x, y, z); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib3d)(index, x, y, z); } static void REGAL_CALL emu_glVertexAttrib3dv(GLuint index, const GLdouble *v) @@ -29379,27 +29054,6 @@ static void REGAL_CALL emu_glVertexAttrib3dv(GLuint index, const GLdouble *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29417,20 +29071,16 @@ static void REGAL_CALL emu_glVertexAttrib3dv(GLuint index, const GLdouble *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<3>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib3dv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib3dv)(index, v); } static void REGAL_CALL emu_glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z) @@ -29441,27 +29091,6 @@ static void REGAL_CALL emu_glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29479,20 +29108,16 @@ static void REGAL_CALL emu_glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<3>( _context, index, x, y, z ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib3f)(index, x, y, z); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib3f)(index, x, y, z); } static void REGAL_CALL emu_glVertexAttrib3fv(GLuint index, const GLfloat *v) @@ -29503,27 +29128,6 @@ static void REGAL_CALL emu_glVertexAttrib3fv(GLuint index, const GLfloat *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29541,20 +29145,16 @@ static void REGAL_CALL emu_glVertexAttrib3fv(GLuint index, const GLfloat *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<3>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib3fv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib3fv)(index, v); } static void REGAL_CALL emu_glVertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z) @@ -29565,27 +29165,6 @@ static void REGAL_CALL emu_glVertexAttrib3s(GLuint index, GLshort x, GLshort y, // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29603,20 +29182,16 @@ static void REGAL_CALL emu_glVertexAttrib3s(GLuint index, GLshort x, GLshort y, Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<3>( _context, index, x, y, z ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib3s)(index, x, y, z); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib3s)(index, x, y, z); } static void REGAL_CALL emu_glVertexAttrib3sv(GLuint index, const GLshort *v) @@ -29627,27 +29202,6 @@ static void REGAL_CALL emu_glVertexAttrib3sv(GLuint index, const GLshort *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29665,20 +29219,16 @@ static void REGAL_CALL emu_glVertexAttrib3sv(GLuint index, const GLshort *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<3>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib3sv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib3sv)(index, v); } static void REGAL_CALL emu_glVertexAttrib4Nbv(GLuint index, const GLbyte *v) @@ -29689,27 +29239,6 @@ static void REGAL_CALL emu_glVertexAttrib4Nbv(GLuint index, const GLbyte *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29727,20 +29256,16 @@ static void REGAL_CALL emu_glVertexAttrib4Nbv(GLuint index, const GLbyte *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->AttrN<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4Nbv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4Nbv)(index, v); } static void REGAL_CALL emu_glVertexAttrib4Niv(GLuint index, const GLint *v) @@ -29751,27 +29276,6 @@ static void REGAL_CALL emu_glVertexAttrib4Niv(GLuint index, const GLint *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29789,20 +29293,16 @@ static void REGAL_CALL emu_glVertexAttrib4Niv(GLuint index, const GLint *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->AttrN<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4Niv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4Niv)(index, v); } static void REGAL_CALL emu_glVertexAttrib4Nsv(GLuint index, const GLshort *v) @@ -29813,27 +29313,6 @@ static void REGAL_CALL emu_glVertexAttrib4Nsv(GLuint index, const GLshort *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29851,20 +29330,16 @@ static void REGAL_CALL emu_glVertexAttrib4Nsv(GLuint index, const GLshort *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->AttrN<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4Nsv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4Nsv)(index, v); } static void REGAL_CALL emu_glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w) @@ -29875,27 +29350,6 @@ static void REGAL_CALL emu_glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29913,20 +29367,16 @@ static void REGAL_CALL emu_glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->AttrN<4>( _context, index, x, y, z, w ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4Nub)(index, x, y, z, w); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4Nub)(index, x, y, z, w); } static void REGAL_CALL emu_glVertexAttrib4Nubv(GLuint index, const GLubyte *v) @@ -29937,27 +29387,6 @@ static void REGAL_CALL emu_glVertexAttrib4Nubv(GLuint index, const GLubyte *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -29975,20 +29404,16 @@ static void REGAL_CALL emu_glVertexAttrib4Nubv(GLuint index, const GLubyte *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->AttrN<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4Nubv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4Nubv)(index, v); } static void REGAL_CALL emu_glVertexAttrib4Nusv(GLuint index, const GLushort *v) @@ -29999,27 +29424,6 @@ static void REGAL_CALL emu_glVertexAttrib4Nusv(GLuint index, const GLushort *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -30037,20 +29441,16 @@ static void REGAL_CALL emu_glVertexAttrib4Nusv(GLuint index, const GLushort *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->AttrN<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4Nusv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4Nusv)(index, v); } static void REGAL_CALL emu_glVertexAttrib4bv(GLuint index, const GLbyte *v) @@ -30061,27 +29461,6 @@ static void REGAL_CALL emu_glVertexAttrib4bv(GLuint index, const GLbyte *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -30099,20 +29478,16 @@ static void REGAL_CALL emu_glVertexAttrib4bv(GLuint index, const GLbyte *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4bv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4bv)(index, v); } static void REGAL_CALL emu_glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) @@ -30123,27 +29498,6 @@ static void REGAL_CALL emu_glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -30161,20 +29515,16 @@ static void REGAL_CALL emu_glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, x, y, z, w ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4d)(index, x, y, z, w); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4d)(index, x, y, z, w); } static void REGAL_CALL emu_glVertexAttrib4dv(GLuint index, const GLdouble *v) @@ -30185,27 +29535,6 @@ static void REGAL_CALL emu_glVertexAttrib4dv(GLuint index, const GLdouble *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -30223,20 +29552,16 @@ static void REGAL_CALL emu_glVertexAttrib4dv(GLuint index, const GLdouble *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4dv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4dv)(index, v); } static void REGAL_CALL emu_glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) @@ -30247,27 +29572,6 @@ static void REGAL_CALL emu_glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -30285,20 +29589,16 @@ static void REGAL_CALL emu_glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, x, y, z, w ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4f)(index, x, y, z, w); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4f)(index, x, y, z, w); } static void REGAL_CALL emu_glVertexAttrib4fv(GLuint index, const GLfloat *v) @@ -30309,27 +29609,6 @@ static void REGAL_CALL emu_glVertexAttrib4fv(GLuint index, const GLfloat *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -30347,20 +29626,16 @@ static void REGAL_CALL emu_glVertexAttrib4fv(GLuint index, const GLfloat *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4fv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4fv)(index, v); } static void REGAL_CALL emu_glVertexAttrib4iv(GLuint index, const GLint *v) @@ -30371,27 +29646,6 @@ static void REGAL_CALL emu_glVertexAttrib4iv(GLuint index, const GLint *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -30409,20 +29663,16 @@ static void REGAL_CALL emu_glVertexAttrib4iv(GLuint index, const GLint *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4iv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4iv)(index, v); } static void REGAL_CALL emu_glVertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w) @@ -30433,27 +29683,6 @@ static void REGAL_CALL emu_glVertexAttrib4s(GLuint index, GLshort x, GLshort y, // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -30471,20 +29700,16 @@ static void REGAL_CALL emu_glVertexAttrib4s(GLuint index, GLshort x, GLshort y, Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, x, y, z, w ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4s)(index, x, y, z, w); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4s)(index, x, y, z, w); } static void REGAL_CALL emu_glVertexAttrib4sv(GLuint index, const GLshort *v) @@ -30495,27 +29720,6 @@ static void REGAL_CALL emu_glVertexAttrib4sv(GLuint index, const GLshort *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -30533,20 +29737,16 @@ static void REGAL_CALL emu_glVertexAttrib4sv(GLuint index, const GLshort *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4sv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4sv)(index, v); } static void REGAL_CALL emu_glVertexAttrib4ubv(GLuint index, const GLubyte *v) @@ -30557,27 +29757,6 @@ static void REGAL_CALL emu_glVertexAttrib4ubv(GLuint index, const GLubyte *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -30595,20 +29774,16 @@ static void REGAL_CALL emu_glVertexAttrib4ubv(GLuint index, const GLubyte *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4ubv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4ubv)(index, v); } static void REGAL_CALL emu_glVertexAttrib4usv(GLuint index, const GLushort *v) @@ -30619,27 +29794,6 @@ static void REGAL_CALL emu_glVertexAttrib4usv(GLuint index, const GLushort *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -30657,20 +29811,16 @@ static void REGAL_CALL emu_glVertexAttrib4usv(GLuint index, const GLushort *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4usv)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4usv)(index, v); } static void REGAL_CALL emu_glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer) @@ -43921,27 +43071,6 @@ static void REGAL_CALL emu_glVertexAttrib1dARB(GLuint index, GLdouble x) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -43959,20 +43088,16 @@ static void REGAL_CALL emu_glVertexAttrib1dARB(GLuint index, GLdouble x) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<1>( _context, index, x ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib1dARB)(index, x); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib1dARB)(index, x); } static void REGAL_CALL emu_glVertexAttrib1dvARB(GLuint index, const GLdouble *v) @@ -43983,27 +43108,6 @@ static void REGAL_CALL emu_glVertexAttrib1dvARB(GLuint index, const GLdouble *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44021,20 +43125,16 @@ static void REGAL_CALL emu_glVertexAttrib1dvARB(GLuint index, const GLdouble *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<1>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib1dvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib1dvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib1fARB(GLuint index, GLfloat x) @@ -44045,27 +43145,6 @@ static void REGAL_CALL emu_glVertexAttrib1fARB(GLuint index, GLfloat x) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44083,20 +43162,16 @@ static void REGAL_CALL emu_glVertexAttrib1fARB(GLuint index, GLfloat x) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<1>( _context, index, x ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib1fARB)(index, x); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib1fARB)(index, x); } static void REGAL_CALL emu_glVertexAttrib1fvARB(GLuint index, const GLfloat *v) @@ -44107,27 +43182,6 @@ static void REGAL_CALL emu_glVertexAttrib1fvARB(GLuint index, const GLfloat *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44145,20 +43199,16 @@ static void REGAL_CALL emu_glVertexAttrib1fvARB(GLuint index, const GLfloat *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<1>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib1fvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib1fvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib1sARB(GLuint index, GLshort x) @@ -44169,27 +43219,6 @@ static void REGAL_CALL emu_glVertexAttrib1sARB(GLuint index, GLshort x) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44207,20 +43236,16 @@ static void REGAL_CALL emu_glVertexAttrib1sARB(GLuint index, GLshort x) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<1>( _context, index, x ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib1sARB)(index, x); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib1sARB)(index, x); } static void REGAL_CALL emu_glVertexAttrib1svARB(GLuint index, const GLshort *v) @@ -44231,27 +43256,6 @@ static void REGAL_CALL emu_glVertexAttrib1svARB(GLuint index, const GLshort *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44269,20 +43273,16 @@ static void REGAL_CALL emu_glVertexAttrib1svARB(GLuint index, const GLshort *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<1>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib1svARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib1svARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib2dARB(GLuint index, GLdouble x, GLdouble y) @@ -44293,27 +43293,6 @@ static void REGAL_CALL emu_glVertexAttrib2dARB(GLuint index, GLdouble x, GLdoubl // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44331,20 +43310,16 @@ static void REGAL_CALL emu_glVertexAttrib2dARB(GLuint index, GLdouble x, GLdoubl Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<2>( _context, index, x, y ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib2dARB)(index, x, y); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib2dARB)(index, x, y); } static void REGAL_CALL emu_glVertexAttrib2dvARB(GLuint index, const GLdouble *v) @@ -44355,27 +43330,6 @@ static void REGAL_CALL emu_glVertexAttrib2dvARB(GLuint index, const GLdouble *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44393,20 +43347,16 @@ static void REGAL_CALL emu_glVertexAttrib2dvARB(GLuint index, const GLdouble *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<2>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib2dvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib2dvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib2fARB(GLuint index, GLfloat x, GLfloat y) @@ -44417,27 +43367,6 @@ static void REGAL_CALL emu_glVertexAttrib2fARB(GLuint index, GLfloat x, GLfloat // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44455,20 +43384,16 @@ static void REGAL_CALL emu_glVertexAttrib2fARB(GLuint index, GLfloat x, GLfloat Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<2>( _context, index, x, y ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib2fARB)(index, x, y); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib2fARB)(index, x, y); } static void REGAL_CALL emu_glVertexAttrib2fvARB(GLuint index, const GLfloat *v) @@ -44479,27 +43404,6 @@ static void REGAL_CALL emu_glVertexAttrib2fvARB(GLuint index, const GLfloat *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44517,20 +43421,16 @@ static void REGAL_CALL emu_glVertexAttrib2fvARB(GLuint index, const GLfloat *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<2>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib2fvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib2fvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib2sARB(GLuint index, GLshort x, GLshort y) @@ -44541,27 +43441,6 @@ static void REGAL_CALL emu_glVertexAttrib2sARB(GLuint index, GLshort x, GLshort // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44579,20 +43458,16 @@ static void REGAL_CALL emu_glVertexAttrib2sARB(GLuint index, GLshort x, GLshort Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<2>( _context, index, x, y ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib2sARB)(index, x, y); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib2sARB)(index, x, y); } static void REGAL_CALL emu_glVertexAttrib2svARB(GLuint index, const GLshort *v) @@ -44603,27 +43478,6 @@ static void REGAL_CALL emu_glVertexAttrib2svARB(GLuint index, const GLshort *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44641,20 +43495,16 @@ static void REGAL_CALL emu_glVertexAttrib2svARB(GLuint index, const GLshort *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<2>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib2svARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib2svARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib3dARB(GLuint index, GLdouble x, GLdouble y, GLdouble z) @@ -44665,27 +43515,6 @@ static void REGAL_CALL emu_glVertexAttrib3dARB(GLuint index, GLdouble x, GLdoubl // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44703,20 +43532,16 @@ static void REGAL_CALL emu_glVertexAttrib3dARB(GLuint index, GLdouble x, GLdoubl Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<3>( _context, index, x, y, z ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib3dARB)(index, x, y, z); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib3dARB)(index, x, y, z); } static void REGAL_CALL emu_glVertexAttrib3dvARB(GLuint index, const GLdouble *v) @@ -44727,27 +43552,6 @@ static void REGAL_CALL emu_glVertexAttrib3dvARB(GLuint index, const GLdouble *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44765,20 +43569,16 @@ static void REGAL_CALL emu_glVertexAttrib3dvARB(GLuint index, const GLdouble *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<3>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib3dvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib3dvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib3fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z) @@ -44789,27 +43589,6 @@ static void REGAL_CALL emu_glVertexAttrib3fARB(GLuint index, GLfloat x, GLfloat // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44827,20 +43606,16 @@ static void REGAL_CALL emu_glVertexAttrib3fARB(GLuint index, GLfloat x, GLfloat Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<3>( _context, index, x, y, z ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib3fARB)(index, x, y, z); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib3fARB)(index, x, y, z); } static void REGAL_CALL emu_glVertexAttrib3fvARB(GLuint index, const GLfloat *v) @@ -44851,27 +43626,6 @@ static void REGAL_CALL emu_glVertexAttrib3fvARB(GLuint index, const GLfloat *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44889,20 +43643,16 @@ static void REGAL_CALL emu_glVertexAttrib3fvARB(GLuint index, const GLfloat *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<3>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib3fvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib3fvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib3sARB(GLuint index, GLshort x, GLshort y, GLshort z) @@ -44913,27 +43663,6 @@ static void REGAL_CALL emu_glVertexAttrib3sARB(GLuint index, GLshort x, GLshort // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -44951,20 +43680,16 @@ static void REGAL_CALL emu_glVertexAttrib3sARB(GLuint index, GLshort x, GLshort Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<3>( _context, index, x, y, z ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib3sARB)(index, x, y, z); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib3sARB)(index, x, y, z); } static void REGAL_CALL emu_glVertexAttrib3svARB(GLuint index, const GLshort *v) @@ -44975,27 +43700,6 @@ static void REGAL_CALL emu_glVertexAttrib3svARB(GLuint index, const GLshort *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45013,20 +43717,16 @@ static void REGAL_CALL emu_glVertexAttrib3svARB(GLuint index, const GLshort *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<3>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib3svARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib3svARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib4NbvARB(GLuint index, const GLbyte *v) @@ -45037,27 +43737,6 @@ static void REGAL_CALL emu_glVertexAttrib4NbvARB(GLuint index, const GLbyte *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45075,20 +43754,16 @@ static void REGAL_CALL emu_glVertexAttrib4NbvARB(GLuint index, const GLbyte *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->AttrN<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4NbvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4NbvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib4NivARB(GLuint index, const GLint *v) @@ -45099,27 +43774,6 @@ static void REGAL_CALL emu_glVertexAttrib4NivARB(GLuint index, const GLint *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45137,20 +43791,16 @@ static void REGAL_CALL emu_glVertexAttrib4NivARB(GLuint index, const GLint *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->AttrN<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4NivARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4NivARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib4NsvARB(GLuint index, const GLshort *v) @@ -45161,27 +43811,6 @@ static void REGAL_CALL emu_glVertexAttrib4NsvARB(GLuint index, const GLshort *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45199,20 +43828,16 @@ static void REGAL_CALL emu_glVertexAttrib4NsvARB(GLuint index, const GLshort *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->AttrN<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4NsvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4NsvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib4NubARB(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w) @@ -45223,27 +43848,6 @@ static void REGAL_CALL emu_glVertexAttrib4NubARB(GLuint index, GLubyte x, GLubyt // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45261,20 +43865,16 @@ static void REGAL_CALL emu_glVertexAttrib4NubARB(GLuint index, GLubyte x, GLubyt Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->AttrN<4>( _context, index, x, y, z, w ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4NubARB)(index, x, y, z, w); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4NubARB)(index, x, y, z, w); } static void REGAL_CALL emu_glVertexAttrib4NubvARB(GLuint index, const GLubyte *v) @@ -45285,27 +43885,6 @@ static void REGAL_CALL emu_glVertexAttrib4NubvARB(GLuint index, const GLubyte *v // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45323,20 +43902,16 @@ static void REGAL_CALL emu_glVertexAttrib4NubvARB(GLuint index, const GLubyte *v Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->AttrN<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4NubvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4NubvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib4NusvARB(GLuint index, const GLushort *v) @@ -45347,27 +43922,6 @@ static void REGAL_CALL emu_glVertexAttrib4NusvARB(GLuint index, const GLushort * // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45385,20 +43939,16 @@ static void REGAL_CALL emu_glVertexAttrib4NusvARB(GLuint index, const GLushort * Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->AttrN<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4NusvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4NusvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib4bvARB(GLuint index, const GLbyte *v) @@ -45409,27 +43959,6 @@ static void REGAL_CALL emu_glVertexAttrib4bvARB(GLuint index, const GLbyte *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45447,20 +43976,16 @@ static void REGAL_CALL emu_glVertexAttrib4bvARB(GLuint index, const GLbyte *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4bvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4bvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib4dARB(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) @@ -45471,27 +43996,6 @@ static void REGAL_CALL emu_glVertexAttrib4dARB(GLuint index, GLdouble x, GLdoubl // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45509,20 +44013,16 @@ static void REGAL_CALL emu_glVertexAttrib4dARB(GLuint index, GLdouble x, GLdoubl Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, x, y, z, w ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4dARB)(index, x, y, z, w); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4dARB)(index, x, y, z, w); } static void REGAL_CALL emu_glVertexAttrib4dvARB(GLuint index, const GLdouble *v) @@ -45533,27 +44033,6 @@ static void REGAL_CALL emu_glVertexAttrib4dvARB(GLuint index, const GLdouble *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45571,20 +44050,16 @@ static void REGAL_CALL emu_glVertexAttrib4dvARB(GLuint index, const GLdouble *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4dvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4dvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib4fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) @@ -45595,27 +44070,6 @@ static void REGAL_CALL emu_glVertexAttrib4fARB(GLuint index, GLfloat x, GLfloat // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45633,20 +44087,16 @@ static void REGAL_CALL emu_glVertexAttrib4fARB(GLuint index, GLfloat x, GLfloat Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, x, y, z, w ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4fARB)(index, x, y, z, w); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4fARB)(index, x, y, z, w); } static void REGAL_CALL emu_glVertexAttrib4fvARB(GLuint index, const GLfloat *v) @@ -45657,27 +44107,6 @@ static void REGAL_CALL emu_glVertexAttrib4fvARB(GLuint index, const GLfloat *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45695,20 +44124,16 @@ static void REGAL_CALL emu_glVertexAttrib4fvARB(GLuint index, const GLfloat *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4fvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4fvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib4ivARB(GLuint index, const GLint *v) @@ -45719,27 +44144,6 @@ static void REGAL_CALL emu_glVertexAttrib4ivARB(GLuint index, const GLint *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45757,20 +44161,16 @@ static void REGAL_CALL emu_glVertexAttrib4ivARB(GLuint index, const GLint *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4ivARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4ivARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib4sARB(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w) @@ -45781,27 +44181,6 @@ static void REGAL_CALL emu_glVertexAttrib4sARB(GLuint index, GLshort x, GLshort // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45819,20 +44198,16 @@ static void REGAL_CALL emu_glVertexAttrib4sARB(GLuint index, GLshort x, GLshort Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, x, y, z, w ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4sARB)(index, x, y, z, w); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4sARB)(index, x, y, z, w); } static void REGAL_CALL emu_glVertexAttrib4svARB(GLuint index, const GLshort *v) @@ -45843,27 +44218,6 @@ static void REGAL_CALL emu_glVertexAttrib4svARB(GLuint index, const GLshort *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45881,20 +44235,16 @@ static void REGAL_CALL emu_glVertexAttrib4svARB(GLuint index, const GLshort *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4svARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4svARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib4ubvARB(GLuint index, const GLubyte *v) @@ -45905,27 +44255,6 @@ static void REGAL_CALL emu_glVertexAttrib4ubvARB(GLuint index, const GLubyte *v) // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -45943,20 +44272,16 @@ static void REGAL_CALL emu_glVertexAttrib4ubvARB(GLuint index, const GLubyte *v) Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4ubvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4ubvARB)(index, v); } static void REGAL_CALL emu_glVertexAttrib4usvARB(GLuint index, const GLushort *v) @@ -45967,27 +44292,6 @@ static void REGAL_CALL emu_glVertexAttrib4usvARB(GLuint index, const GLushort *v // prefix switch( _context->emuLevel ) - { - case 15 : - case 14 : - case 13 : - case 12 : - case 11 : - case 10 : - case 9 : - case 8 : - case 7 : - case 6 : - #if REGAL_EMU_IFF - if (_context->iff) break; - #endif - case 1 : - default: - break; - } - - // impl - switch( _context->emuLevel ) { case 15 : case 14 : @@ -46005,20 +44309,16 @@ static void REGAL_CALL emu_glVertexAttrib4usvARB(GLuint index, const GLushort *v Push pushLevel(_context->emuLevel); _context->emuLevel = 5; _context->iff->Attr<4>( _context, index, v ); - return; } #endif case 1 : default: - { - DispatchTableGL *_next = _dispatch.next(); - RegalAssert(_next); - _next->call(&_next->glVertexAttrib4usvARB)(index, v); break; - } - } + DispatchTableGL *_next = _dispatch.next(); + RegalAssert(_next); + _next->call(& _next->glVertexAttrib4usvARB)(index, v); } static void REGAL_CALL emu_glVertexAttribPointerARB(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer)