opengl: dropped minimum version to es 3.0

This commit is contained in:
itsmattkc
2020-11-19 16:55:19 +11:00
parent dcf56781b4
commit 30b0af4f3a
3 changed files with 79 additions and 21 deletions
+6 -1
View File
@@ -20,6 +20,7 @@
#include "renderprocessor.h"
#include <QOpenGLContext>
#include <QVector2D>
#include <QVector3D>
#include <QVector4D>
@@ -72,7 +73,11 @@ void RenderProcessor::Run()
frame_params.set_format(frame_format);
}
if (texture) {
if (RenderManager::instance()->backend() == RenderManager::kOpenGL
&& QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGLES) {
// HACK: From what I can tell, ANGLE only supports texture reading to RGBA
frame_params.set_channel_count(VideoParams::kRGBAChannelCount);
} else if (texture) {
frame_params.set_channel_count(texture->channel_count());
}