Querying GL_MAX_VARYING_FLOATS is "unacceptable value" on NVidia GTX 1080

Hello,

calling this on an NVidia GeForce GTX 1080

GLint result;
glGetIntegerv(GL_MAX_VARYING_FLOATS, &result);

results in error code

An unacceptable value is specified for an enumerated argument. The offending command is ignored and has no other side effect than to set the error flag. (Code: 1280)

when checking with glGetError()! I am using OpenGL 3.2 Core Profile context.

Why do I get this error? Checked with an AMD Radeon card and no error is reported.

Help is really appreciated!

[Anzeige]
Betriebssystem: Windows 10 Home, 64-bit
DirectX-Version: 12.0
GPU-Prozessor: GeForce GTX 1080
Treiberversion: 368.39
Video-BIOS-Version: 86.04.17.00.01


[Komponenten]

NvUpdtr.dll 2.11.3.5 NVIDIA Update Components
NvUpdt.dll 2.11.3.5 NVIDIA Update Components
nvui.dll 8.17.13.6839 NVIDIA User Experience Driver Component
nvxdsync.exe 8.17.13.6839 NVIDIA User Experience Driver Component
nvxdplcy.dll 8.17.13.6839 NVIDIA User Experience Driver Component
nvxdbat.dll 8.17.13.6839 NVIDIA User Experience Driver Component
nvxdapix.dll 8.17.13.6839 NVIDIA User Experience Driver Component
NVCPL.DLL 8.17.13.6839 NVIDIA User Experience Driver Component
nvCplUIR.dll 8.1.900.0 NVIDIA Control Panel
nvCplUI.exe 8.1.900.0 NVIDIA Control Panel
nvWSSR.dll 6.14.13.6839 NVIDIA Workstation Server
nvWSS.dll 6.14.13.6839 NVIDIA Workstation Server
nvViTvSR.dll 6.14.13.6839 NVIDIA Video Server
nvViTvS.dll 6.14.13.6839 NVIDIA Video Server
nvLicensingS.dll 6.14.13.6839 NVIDIA Licensing Server
NVSTVIEW.EXE 7.17.13.6839 NVIDIA 3D Vision Photo Viewer
NVSTTEST.EXE 7.17.13.6839 NVIDIA 3D Vision Test Application
NVSTRES.DLL 7.17.13.6839 NVIDIA 3D Vision Module
nvDispSR.dll 6.14.13.6839 NVIDIA Display Server
NVMCTRAY.DLL 8.17.13.6839 NVIDIA Media Center Library
nvDispS.dll 6.14.13.6839 NVIDIA Display Server
PhysX 09.16.0318 NVIDIA PhysX
NVCUDA.DLL 6.14.13.6839 NVIDIA CUDA 8.0.0 driver
nvGameSR.dll 6.14.13.6839 NVIDIA 3D Settings Server
nvGameS.dll 6.14.13.6839 NVIDIA 3D Settings Server

Problem already solved! Thread can be closed.

Got the hint from somebody to remove the flag for forward-compatible context. That solved the problem and in general is not recommended to be used anyway.

Appendix E.2.1 of the OpenGL 3.2 specification says:

E.2.1 Deprecated But Still Supported Features

The following features are deprecated, but still present in the core profile. They may be removed from a future version of OpenGL, and are removed in a forward-compatible context implementing the core profile.

* Wide lines - LineWidth values greater than 1.0 will generate an INVALID_VALUE error.

* Global component limit query - the implementation-dependent values MAX_VARYING_COMPONENTS and MAX_VARYING_FLOATS.