Fix a case of pointer truncation in Vulkan on 32-bit. Fixes #12932

This commit is contained in:
Henrik Rydgård committed 2020-05-19 20:53:51 +02:00
1 parent 69c092dce1
commit e64fdfa0c3
5 files changed
+26 -26

No files matched your search

+2 -2
View File
@@ -467,10 +467,10 @@ public:
}
}
uintptr_t GetNativeObject(NativeObject obj) override {
uint64_t GetNativeObject(NativeObject obj) override {
switch (obj) {
case NativeObject::RENDER_MANAGER:
return (uintptr_t)&renderManager_;
return (uint64_t)(uintptr_t)&renderManager_;
default:
return 0;
}