mirror of https://github.com/bjornbytes/lovr.git
Only enable compute extensions on desktop GL;
This commit is contained in:
parent
1757d30a59
commit
880d06a1d1
|
@ -2620,14 +2620,14 @@ Shader* lovrShaderCreateGraphics(const char* vertexSource, int vertexSourceLengt
|
||||||
|
|
||||||
#if defined(LOVR_WEBGL) || defined(LOVR_GLES)
|
#if defined(LOVR_WEBGL) || defined(LOVR_GLES)
|
||||||
const char* version = "#version 300 es\n";
|
const char* version = "#version 300 es\n";
|
||||||
|
const char* computeExtensions = "";
|
||||||
#else
|
#else
|
||||||
const char* version = "#version 330\n";
|
const char* version = "#version 330\n";
|
||||||
#endif
|
|
||||||
|
|
||||||
const char* computeExtensions = state.features.compute ?
|
const char* computeExtensions = state.features.compute ?
|
||||||
"#extension GL_ARB_shader_storage_buffer_object : enable \n"
|
"#extension GL_ARB_shader_storage_buffer_object : enable \n"
|
||||||
"#extension GL_ARB_shader_image_load_store : enable \n" :
|
"#extension GL_ARB_shader_image_load_store : enable \n" :
|
||||||
NULL;
|
NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
const char* singlepass[2] = { "", "" };
|
const char* singlepass[2] = { "", "" };
|
||||||
if (multiview && state.singlepass == MULTIVIEW) {
|
if (multiview && state.singlepass == MULTIVIEW) {
|
||||||
|
|
Loading…
Reference in New Issue