SwapBuffers() generates GL_INVALID_ENUM in core profile context

Discussion created by asylum29 on Sep 14, 2017
Latest reply on Feb 4, 2018 by Andrey2007AMD

This was bugging me for some time... Both SwapBuffers() and wglSwapLayerBuffers() generate GL_INVALID_ENUM on first call.

Debug output from CodeXL says:


OpenGL Debug Output: API - Error, Using glGetString in a Core context with parameter <name> and enum '0x1f03' which was removed from Core OpenGL (GL_INVALID_ENUM)


Is this a driver bug? Or a Windows 10 bug? (I don't remember of this happening on win7)