mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Fix]: compilation error after merge
This commit is contained in:
@@ -233,7 +233,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
imageCount);
|
imageCount);
|
||||||
|
|
||||||
// Properly initialize Default FBO here
|
// 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());
|
auto* colorTex = static_cast<MG_State::GLState::TextureObject2D*>(defaultFBOInfo->colorAttachment.get());
|
||||||
colorTex->AllocateStorage(
|
colorTex->AllocateStorage(
|
||||||
TextureUploadTarget::Texture2D, 0, {
|
TextureUploadTarget::Texture2D, 0, {
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ namespace MobileGL {
|
|||||||
constexpr EGLint EGL_DISPLAY_MINOR_VERSION = 5;
|
constexpr EGLint EGL_DISPLAY_MINOR_VERSION = 5;
|
||||||
} // namespace
|
} // 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 {
|
SizeT EGLContext::DisplayLookupHasher::operator()(const DisplayLookupKey& key) const {
|
||||||
const auto nativeHash = std::hash<Uint64>{}(key.NativeDisplayKey);
|
const auto nativeHash = std::hash<Uint64>{}(key.NativeDisplayKey);
|
||||||
const auto platformHash = std::hash<Uint64>{}(static_cast<Uint64>(key.Platform));
|
const auto platformHash = std::hash<Uint64>{}(static_cast<Uint64>(key.Platform));
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ namespace MobileGL {
|
|||||||
Uint64 NativeDisplayKey = 0;
|
Uint64 NativeDisplayKey = 0;
|
||||||
EGLenum Platform = EGL_NONE;
|
EGLenum Platform = EGL_NONE;
|
||||||
|
|
||||||
Bool operator==(const DisplayLookupKey& rhs) const = default;
|
Bool operator==(const DisplayLookupKey& rhs) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct DisplayLookupHasher {
|
struct DisplayLookupHasher {
|
||||||
|
|||||||
Reference in New Issue
Block a user