Formatting
This commit is contained in:
@@ -46,7 +46,7 @@ public:
|
|||||||
|
|
||||||
OptionalRef findFromAddress(u32 address) {
|
OptionalRef findFromAddress(u32 address) {
|
||||||
for (auto& e : buffer) {
|
for (auto& e : buffer) {
|
||||||
if (e.location <= address && e.location+e.sizeInBytes() > address && e.valid)
|
if (e.location <= address && e.location + e.sizeInBytes() > address && e.valid)
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ struct ColourBuffer {
|
|||||||
void free() {
|
void free() {
|
||||||
valid = false;
|
valid = false;
|
||||||
|
|
||||||
if (texture.exists() || fbo.exists()){
|
if (texture.exists() || fbo.exists()) {
|
||||||
texture.free();
|
texture.free();
|
||||||
fbo.free();
|
fbo.free();
|
||||||
}
|
}
|
||||||
@@ -130,10 +130,10 @@ struct DepthBuffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void free() {
|
void free() {
|
||||||
if(texture.exists()){
|
valid = false;
|
||||||
|
if (texture.exists()) {
|
||||||
texture.free();
|
texture.free();
|
||||||
}
|
}
|
||||||
valid = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool matches(DepthBuffer& other) {
|
bool matches(DepthBuffer& other) {
|
||||||
|
|||||||
Reference in New Issue
Block a user