Fix: [OpenGL] Check maximum supported texture size against screen resolution.

This commit is contained in:
Michael Lutz
2021-04-21 22:06:04 +02:00
parent 5ff15443e9
commit e53313391a
5 changed files with 15 additions and 8 deletions

View File

@@ -74,7 +74,7 @@ private:
OpenGLBackend();
~OpenGLBackend();
const char *Init();
const char *Init(const Dimension &screen_res);
bool InitShaders();
void InternalClearCursorCache();
@@ -87,7 +87,7 @@ public:
{
return OpenGLBackend::instance;
}
static const char *Create(GetOGLProcAddressProc get_proc);
static const char *Create(GetOGLProcAddressProc get_proc, const Dimension &screen_res);
static void Destroy();
void PrepareContext();