OpenGLDevice: GLES fixes

This commit is contained in:
Stenzek
2023-12-06 23:35:40 +10:00
parent 14c7c70b0c
commit bcc2042154
4 changed files with 40 additions and 12 deletions

View File

@@ -32,10 +32,9 @@ public:
{
return GetInstance().m_texture_stream_buffer.get();
}
ALWAYS_INLINE static bool IsGLES() { return GetInstance().m_gl_context->IsGLES(); }
static void BindUpdateTextureUnit();
ALWAYS_INLINE GL::Context* GetGLContext() const { return m_gl_context.get(); }
RenderAPI GetRenderAPI() const override;
bool HasSurface() const override;
@@ -122,7 +121,8 @@ public:
void UnbindPipeline(const OpenGLPipeline* pl);
protected:
bool CreateDevice(const std::string_view& adapter, bool threaded_presentation, FeatureMask disabled_features) override;
bool CreateDevice(const std::string_view& adapter, bool threaded_presentation,
FeatureMask disabled_features) override;
void DestroyDevice() override;
bool ReadPipelineCache(const std::string& filename) override;