diff options
author | Brian Paul <[email protected]> | 2010-10-21 19:03:38 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-10-21 19:03:38 -0600 |
commit | b3de6e703d91da4f7f402f9ca33ccbbe31e97d99 (patch) | |
tree | 6360715050483a1e1b4f72d330fe799b0e8dd490 /src/mesa/main/api_noop.c | |
parent | 4f495ec20e25f0e23058f9a2b3981b544ee2b6a6 (diff) |
mesa: plug in primitive restart function
Diffstat (limited to 'src/mesa/main/api_noop.c')
-rw-r--r-- | src/mesa/main/api_noop.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/main/api_noop.c b/src/mesa/main/api_noop.c index 9a36394d65e..08b4b4a3b67 100644 --- a/src/mesa/main/api_noop.c +++ b/src/mesa/main/api_noop.c @@ -679,6 +679,16 @@ static void GLAPIENTRY _mesa_noop_End( void ) } +/*** + * PrimitiveRestart called outside glBegin()/End(): raise an error + */ +static void GLAPIENTRY _mesa_noop_PrimitiveRestartNV( void ) +{ + GET_CURRENT_CONTEXT(ctx); + _mesa_error(ctx, GL_INVALID_OPERATION, "glPrimitiveRestartNV(no glBegin)"); +} + + /** * Execute a glRectf() function. This is not suitable for GL_COMPILE * modes (as the test for outside begin/end is not compiled), @@ -1007,6 +1017,8 @@ _mesa_noop_vtxfmt_init( GLvertexformat *vfmt ) vfmt->EdgeFlag = _mesa_noop_EdgeFlag; vfmt->End = _mesa_noop_End; + vfmt->PrimitiveRestartNV = _mesa_noop_PrimitiveRestartNV; + _MESA_INIT_EVAL_VTXFMT(vfmt, _mesa_noop_); vfmt->FogCoordfEXT = _mesa_noop_FogCoordfEXT; |