Implement colormask

This commit is contained in:
Henrik Rydgård committed 2016-12-27 11:59:11 +01:00
1 parent 2952588a54
commit cbf4e5f38c
7 files changed
+50 -59

No files matched your search

+14
View File
@@ -9,6 +9,20 @@
namespace Draw {
bool RefCountedObject::Release() {
if (refcount_ > 0 && refcount_ < 10000) {
refcount_--;
if (refcount_ == 0) {
delete this;
return true;
}
}
else {
ELOG("Refcount (%d) invalid for object %p - corrupt?", refcount_, this);
}
return false;
}
// ================================== PIXEL/FRAGMENT SHADERS
// The Vulkan ones can be re-used with modern GL later if desired, as they're just GLSL.