Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/opengl/gl_context.cc')
-rw-r--r--source/blender/gpu/opengl/gl_context.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/gpu/opengl/gl_context.cc b/source/blender/gpu/opengl/gl_context.cc
index 30279ccade1..6b3b06ef12b 100644
--- a/source/blender/gpu/opengl/gl_context.cc
+++ b/source/blender/gpu/opengl/gl_context.cc
@@ -190,7 +190,7 @@ void GLContext::finish(void)
void GLSharedOrphanLists::orphans_clear(void)
{
/* Check if any context is active on this thread! */
- BLI_assert(GPU_context_active_get());
+ BLI_assert(GLContext::get());
lists_mutex.lock();
if (!buffers.is_empty()) {
@@ -232,7 +232,7 @@ void GLContext::orphans_add(Vector<GLuint> &orphan_list, std::mutex &list_mutex,
void GLContext::vao_free(GLuint vao_id)
{
- if (this == GPU_context_active_get()) {
+ if (this == GLContext::get()) {
glDeleteVertexArrays(1, &vao_id);
}
else {
@@ -242,7 +242,7 @@ void GLContext::vao_free(GLuint vao_id)
void GLContext::fbo_free(GLuint fbo_id)
{
- if (this == GPU_context_active_get()) {
+ if (this == GLContext::get()) {
glDeleteFramebuffers(1, &fbo_id);
}
else {
@@ -253,7 +253,7 @@ void GLContext::fbo_free(GLuint fbo_id)
void GLContext::buf_free(GLuint buf_id)
{
/* Any context can free. */
- if (GPU_context_active_get()) {
+ if (GLContext::get()) {
glDeleteBuffers(1, &buf_id);
}
else {
@@ -265,7 +265,7 @@ void GLContext::buf_free(GLuint buf_id)
void GLContext::tex_free(GLuint tex_id)
{
/* Any context can free. */
- if (GPU_context_active_get()) {
+ if (GLContext::get()) {
glDeleteTextures(1, &tex_id);
}
else {