[Bf-blender-cvs] [991eb5f79c5] master: Cleanup: GPUContext: Remove unused functions

Clément Foucault noreply at git.blender.org
Tue Sep 1 12:03:55 CEST 2020


Commit: 991eb5f79c5381eb45df90e526f5332b4364b35c
Author: Clément Foucault
Date:   Tue Sep 1 10:07:39 2020 +0200
Branches: master
https://developer.blender.org/rB991eb5f79c5381eb45df90e526f5332b4364b35c

Cleanup: GPUContext: Remove unused functions

===================================================================

M	source/blender/gpu/opengl/gl_context.cc
M	source/blender/gpu/opengl/gl_context.hh

===================================================================

diff --git a/source/blender/gpu/opengl/gl_context.cc b/source/blender/gpu/opengl/gl_context.cc
index a3b060abf0e..1495e665aa8 100644
--- a/source/blender/gpu/opengl/gl_context.cc
+++ b/source/blender/gpu/opengl/gl_context.cc
@@ -276,26 +276,4 @@ void GLContext::vao_cache_unregister(GLVaoCache *cache)
   lists_mutex_.unlock();
 }
 
-void GLContext::framebuffer_register(struct GPUFrameBuffer *fb)
-{
-#ifdef DEBUG
-  lists_mutex_.lock();
-  framebuffers_.add(fb);
-  lists_mutex_.unlock();
-#else
-  UNUSED_VARS(fb);
-#endif
-}
-
-void GLContext::framebuffer_unregister(struct GPUFrameBuffer *fb)
-{
-#ifdef DEBUG
-  lists_mutex_.lock();
-  framebuffers_.remove(fb);
-  lists_mutex_.unlock();
-#else
-  UNUSED_VARS(fb);
-#endif
-}
-
 /** \} */
diff --git a/source/blender/gpu/opengl/gl_context.hh b/source/blender/gpu/opengl/gl_context.hh
index fa1c6b9918e..bc7e2060804 100644
--- a/source/blender/gpu/opengl/gl_context.hh
+++ b/source/blender/gpu/opengl/gl_context.hh
@@ -92,8 +92,6 @@ class GLContext : public GPUContext {
   void fbo_free(GLuint fbo_id);
   void vao_cache_register(GLVaoCache *cache);
   void vao_cache_unregister(GLVaoCache *cache);
-  void framebuffer_register(struct GPUFrameBuffer *fb);
-  void framebuffer_unregister(struct GPUFrameBuffer *fb);
 };
 
 }  // namespace gpu



More information about the Bf-blender-cvs mailing list