From c4010e3f935d3b84e57755a5fb738c83511ffd8b Mon Sep 17 00:00:00 2001 From: Markus Wick Date: Thu, 22 Mar 2018 22:17:25 +0100 Subject: [PATCH] renderer_opengl: Drop GLSync, unused. --- .../renderer_opengl/gl_resource_manager.h | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/src/video_core/renderer_opengl/gl_resource_manager.h b/src/video_core/renderer_opengl/gl_resource_manager.h index dcaa9a0f3..4c20c8849 100644 --- a/src/video_core/renderer_opengl/gl_resource_manager.h +++ b/src/video_core/renderer_opengl/gl_resource_manager.h @@ -225,39 +225,6 @@ public: GLuint handle = 0; }; -class OGLSync : private NonCopyable { -public: - OGLSync() = default; - - OGLSync(OGLSync&& o) : handle(std::exchange(o.handle, nullptr)) {} - - ~OGLSync() { - Release(); - } - OGLSync& operator=(OGLSync&& o) { - Release(); - handle = std::exchange(o.handle, nullptr); - return *this; - } - - /// Creates a new internal OpenGL resource and stores the handle - void Create() { - if (handle != 0) - return; - handle = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); - } - - /// Deletes the internal OpenGL resource - void Release() { - if (handle == 0) - return; - glDeleteSync(handle); - handle = 0; - } - - GLsync handle = 0; -}; - class OGLVertexArray : private NonCopyable { public: OGLVertexArray() = default;