[Fix]: compilation error after merge

This commit is contained in:
2026-03-08 11:06:27 +08:00
parent 4a38e7224e
commit 67069d4a12
3 changed files with 6 additions and 2 deletions
@@ -233,7 +233,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
imageCount);
// Properly initialize Default FBO here
auto* defaultFBOInfo = MG_Impl::GLImpl::FramebufferImpl::pDefaultFramebufferInfo;
auto& defaultFBOInfo = MG_Impl::GLImpl::FramebufferImpl::pDefaultFramebufferInfo;
auto* colorTex = static_cast<MG_State::GLState::TextureObject2D*>(defaultFBOInfo->colorAttachment.get());
colorTex->AllocateStorage(
TextureUploadTarget::Texture2D, 0, {
+4
View File
@@ -16,6 +16,10 @@ namespace MobileGL {
constexpr EGLint EGL_DISPLAY_MINOR_VERSION = 5;
} // namespace
Bool EGLContext::DisplayLookupKey::operator==(const DisplayLookupKey& rhs) const {
return this->NativeDisplayKey == rhs.NativeDisplayKey && this->Platform == rhs.Platform;
}
SizeT EGLContext::DisplayLookupHasher::operator()(const DisplayLookupKey& key) const {
const auto nativeHash = std::hash<Uint64>{}(key.NativeDisplayKey);
const auto platformHash = std::hash<Uint64>{}(static_cast<Uint64>(key.Platform));
+1 -1
View File
@@ -115,7 +115,7 @@ namespace MobileGL {
Uint64 NativeDisplayKey = 0;
EGLenum Platform = EGL_NONE;
Bool operator==(const DisplayLookupKey& rhs) const = default;
Bool operator==(const DisplayLookupKey& rhs) const;
};
struct DisplayLookupHasher {