mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-28 02:41:18 +00:00
On PC, OpenGL 3.3 is enough for the new path, don't need ES 3 full compat.
This commit is contained in:
parent
e2a4e13e38
commit
d90da45a76
@ -89,7 +89,7 @@ static bool CheckShaderCompileSuccess(GLuint shader, const char *code) {
|
||||
|
||||
DepalShaderCache::DepalShaderCache() {
|
||||
// Pre-build the vertex program
|
||||
bool useGL3 = gl_extensions.GLES3;
|
||||
bool useGL3 = gl_extensions.GLES3 || gl_extensions.VersionGEThan(3, 3);
|
||||
|
||||
vertexShader_ = glCreateShader(GL_VERTEX_SHADER);
|
||||
glShaderSource(vertexShader_, 1, useGL3 ? &depalVShader300 : &depalVShader100, 0);
|
||||
@ -328,7 +328,7 @@ void DepalShaderCache::Decimate() {
|
||||
GLuint DepalShaderCache::GetDepalettizeShader(GEBufferFormat pixelFormat) {
|
||||
u32 id = GenerateShaderID(pixelFormat);
|
||||
|
||||
bool useGL3 = gl_extensions.GLES3;
|
||||
bool useGL3 = gl_extensions.GLES3 || gl_extensions.VersionGEThan(3, 3);
|
||||
|
||||
auto shader = cache_.find(id);
|
||||
if (shader != cache_.end()) {
|
||||
|
Loading…
Reference in New Issue
Block a user