diff options
author | Chris Forbes <[email protected]> | 2014-10-01 20:04:37 +1300 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2014-10-16 22:31:43 +1300 |
commit | 8db38ba4d2f6dee62009f40208cb11bc6547167f (patch) | |
tree | 6c467c43be88222326e1fcaf093f9230eb37d6ef /src/mesa/main/teximage.c | |
parent | fe3133fe78a2cfe8a36d1b6a9eb4a9e89f3f59ed (diff) |
mesa: Mark buffer objects that are used as TexBOs
Signed-off-by: Chris Forbes <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index c0298af8ea6..4f4bb11dd5c 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -4652,6 +4652,12 @@ texbufferrange(struct gl_context *ctx, GLenum target, GLenum internalFormat, texObj->BufferSize = size; } _mesa_unlock_texture(ctx, texObj); + + ctx->NewDriverState |= ctx->DriverFlags.NewTextureBuffer; + + if (bufObj) { + bufObj->UsageHistory |= USAGE_TEXTURE_BUFFER; + } } |