mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-10 05:08:31 +09:00
[Fix]: compilation error after merge
This commit is contained in:
@@ -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, {
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user