summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/bufferobj.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-01-09 17:53:07 -0500
committerNicolai Hähnle <[email protected]>2016-01-14 09:39:30 -0500
commit6f4ae810056a1f3c53efe6f0576b9b9c4e847a80 (patch)
tree6618bc23287eae6828022083ed30f0ba8dcdada7 /src/mesa/main/bufferobj.c
parent53c77494aa7362d390b09351f831713519064ccc (diff)
mesa: add Driver.InvalidateBufferSubData
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/bufferobj.c')
-rw-r--r--src/mesa/main/bufferobj.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index aa2498bf5f5..26f873bc9a9 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -3939,10 +3939,8 @@ _mesa_InvalidateBufferSubData(GLuint buffer, GLintptr offset,
return;
}
- /* We don't actually do anything for this yet. Just return after
- * validating the parameters and generating the required errors.
- */
- return;
+ if (ctx->Driver.InvalidateBufferSubData)
+ ctx->Driver.InvalidateBufferSubData(ctx, bufObj, offset, length);
}
void GLAPIENTRY
@@ -3979,8 +3977,6 @@ _mesa_InvalidateBufferData(GLuint buffer)
return;
}
- /* We don't actually do anything for this yet. Just return after
- * validating the parameters and generating the required errors.
- */
- return;
+ if (ctx->Driver.InvalidateBufferSubData)
+ ctx->Driver.InvalidateBufferSubData(ctx, bufObj, 0, bufObj->Size);
}