1
0
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:
jsjtxietian
2024-04-08 12:31:22 +08:00
parent e5b4ef8e95
commit 5a5453bcf2
3 changed files with 14 additions and 10 deletions

View File

@@ -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; \