mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 10:40:01 +01:00
Some preparations
This commit is contained in:
1 parent
be833550ec
commit
b5de9e0cc3
5 files changed
+52
-5
No files matched your search
@@ -3,6 +3,21 @@
|
||||
#include "Common/GPU/OpenGL/GLRenderManager.h"
|
||||
#include "Common/Log.h"
|
||||
|
||||
void GLCachedReadback::Destroy(bool skipGLCalls) {
|
||||
if (buffer && !skipGLCalls) {
|
||||
glDeleteBuffers(1, &buffer);
|
||||
}
|
||||
buffer = 0;
|
||||
}
|
||||
|
||||
void GLFrameData::Destroy(bool skipGLCalls) {
|
||||
readbacks_.IterateMut([=](const GLReadbackKey &key, GLCachedReadback *value) {
|
||||
value->Destroy(skipGLCalls);
|
||||
delete value;
|
||||
});
|
||||
readbacks_.Clear();
|
||||
}
|
||||
|
||||
void GLDeleter::Take(GLDeleter &other) {
|
||||
_assert_msg_(IsEmpty(), "Deleter already has stuff");
|
||||
shaders = std::move(other.shaders);
|
||||
|
||||
Reference in new issue
Block a user