PDA

View Full Version : GL_MAX_VARYING_FLOATS reported as "unacceptable value" on NVidia GTX 1080



RealtimeSlave
06-12-2016, 04:46 AM
Hello,

does anybody know why


GLint result;
glGetIntegerv(GL_MAX_VARYING_FLOATS, &result);

results in


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.

Thanks!


[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

GClements
06-12-2016, 04:59 AM
Are you using a forward-compatible context? 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.

RealtimeSlave
06-12-2016, 05:27 AM
Thank you so much! That was indeed the problem.

I removed the forward-compatible bit flag as recommended here (https://www.opengl.org/wiki/Core_And_Compatibility_in_Contexts) and now the problem is gone! :)