mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 04:49:14 +12:00
doormat
This commit is contained in:
parent
e41076522c
commit
c88ab423d3
2 changed files with 11 additions and 11 deletions
|
@ -58,13 +58,13 @@ struct ColourBuffer {
|
|||
}
|
||||
|
||||
void free() {
|
||||
valid = false;
|
||||
valid = false;
|
||||
|
||||
if (texture.exists() || fbo.exists()) {
|
||||
texture.free();
|
||||
fbo.free();
|
||||
}
|
||||
}
|
||||
if (texture.exists() || fbo.exists()) {
|
||||
texture.free();
|
||||
fbo.free();
|
||||
}
|
||||
}
|
||||
|
||||
bool matches(ColourBuffer& other) {
|
||||
return location == other.location && format == other.format &&
|
||||
|
@ -131,10 +131,10 @@ struct DepthBuffer {
|
|||
|
||||
void free() {
|
||||
valid = false;
|
||||
if (texture.exists()) {
|
||||
texture.free();
|
||||
}
|
||||
}
|
||||
if (texture.exists()) {
|
||||
texture.free();
|
||||
}
|
||||
}
|
||||
|
||||
bool matches(DepthBuffer& other) {
|
||||
return location == other.location && format == other.format &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue