Commit deaf0bc7 by Ben Vanik Committed by Ben Vanik

Unbinding uniform buffers on context shutdown.

Fixes bug swiftshader:72. Change-Id: I4fcc6c47ec8561150c88fea200aeb6baf9534c00 Reviewed-on: https://swiftshader-review.googlesource.com/10511Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarBen Vanik <benvanik@google.com>
parent 4d97f36a
...@@ -245,6 +245,11 @@ Context::~Context() ...@@ -245,6 +245,11 @@ Context::~Context()
mState.pixelPackBuffer = nullptr; mState.pixelPackBuffer = nullptr;
mState.pixelUnpackBuffer = nullptr; mState.pixelUnpackBuffer = nullptr;
mState.genericUniformBuffer = nullptr; mState.genericUniformBuffer = nullptr;
for(int i = 0; i < MAX_UNIFORM_BUFFER_BINDINGS; i++) {
mState.uniformBuffers[i].set(nullptr, 0, 0);
}
mState.renderbuffer = nullptr; mState.renderbuffer = nullptr;
for(int i = 0; i < MAX_COMBINED_TEXTURE_IMAGE_UNITS; ++i) for(int i = 0; i < MAX_COMBINED_TEXTURE_IMAGE_UNITS; ++i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment