Welcome, Guest

Author Topic: Unity 5.5 OpenGL error  (Read 474 times)

pecam

  • Posts: 3
    • View Profile
Unity 5.5 OpenGL error
« on: March 28, 2017, 09:20:09 AM »
Hey guys - i've updated my Unity project to 5.5 and have discovered that Unity has removed OpenGL 2 as legacy...while our in-game browser (running CoherentUI 2.6.6) seems to be working i'm getting the following error every frame:

OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_ENUM: enum argument out of range

any ideas?

john.v

  • Administrator
  • *****
  • Posts: 62
    • View Profile
Re: Unity 5.5 OpenGL error
« Reply #1 on: March 29, 2017, 08:47:16 AM »
Hi pecam,

This error is usually fired by a legacy code. There aren't drawbacks to this error besides the log spamming. If you want to suppress it, you can modify the LogHandler.cs script (in Assets/Standard Assets/Scripts/CoherentUI/Detail) like this:

Code: [Select]
if (!message.EndsWith("GL_INVALID_ENUM: enum argument out of range"))
{
    UnityEngine.Debug.Log(string.Format("[Coherent UI] ({0}) {1}", severity, message));
}

John V.
Support Engineer at Coherent Labs

Tags: OpenGL