mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-30 03:10:16 +00:00
renderer_opengl: Drop GLSync, unused.
This commit is contained in:
parent
5d1dd205c4
commit
c4010e3f93
1 changed files with 0 additions and 33 deletions
|
@ -225,39 +225,6 @@ public:
|
||||||
GLuint handle = 0;
|
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 {
|
class OGLVertexArray : private NonCopyable {
|
||||||
public:
|
public:
|
||||||
OGLVertexArray() = default;
|
OGLVertexArray() = default;
|
||||||
|
|
Loading…
Reference in a new issue