You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Fixes RenderingDevice::get_driver_resource will crash or give incorrect result with certain resources
This commit is contained in:
@@ -128,7 +128,7 @@ public:
|
||||
|
||||
#define DEFINE_ID(m_name) \
|
||||
struct m_name##ID : public ID { \
|
||||
_ALWAYS_INLINE_ operator bool() const { return id != 0; } \
|
||||
_ALWAYS_INLINE_ explicit operator bool() const { return id != 0; } \
|
||||
_ALWAYS_INLINE_ m_name##ID &operator=(m_name##ID p_other) { \
|
||||
id = p_other.id; \
|
||||
return *this; \
|
||||
|
||||
Reference in New Issue
Block a user