Skip to content

Commit 53479eb

Browse files
author
eduardas.vitkus
committed
[opengl][windows] exclude OpenGLES
1 parent 85840b6 commit 53479eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PluginSource/source/RenderAPI_OpenGLCoreES.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ static GLuint CreateShader(GLenum type, const char* sourceText)
138138
void RenderAPI_OpenGLCoreES::CreateResources()
139139
{
140140
# if UNITY_WIN && SUPPORT_OPENGL_CORE
141-
gl3wInit();
141+
if (m_APIType == kUnityGfxRendererOpenGLCore)
142+
gl3wInit();
142143
# endif
143144
// Make sure that there are no GL error flags set before creating resources
144145
while (glGetError() != GL_NO_ERROR) {}

0 commit comments

Comments
 (0)