Error running optixPathTracer(7.1.0) sample sometimes

[ 4][ KNOBS]: All knobs on default.

[ 4][ DISK CACHE]: Opened database: “C:\Users\0\AppData\Local\NVIDIA\OptixCache\cache7.db”
[ 4][ DISK CACHE]: Cache data size: “23.7 MiB”
[ 4][ DISKCACHE]: Cache hit for key: ptx-22283-key8c9a27d547cd8cd731f06a1f9c7f3be5-sm_75-rtc1-drv451.67
[ 4][COMPILE FEEDBACK]: Info: Pipeline has 1 module(s), 4 entry function(s), 2 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 26 basic block(s) in entry functions, 686 instruction(s) in entry functions, 7 non-entry function(s), 42 basic block(s) in non-entry functions, 616 instruction(s) in non-entry functions

GL error Invalid operation at D:\programs\OptiX\OptiX SDK 7.1.0\SDK\sutil\sutil.cpp(344): glClearColor( 0.212f, 0.271f, 0.31f, 1.0f )

Caught exception: GL error Invalid operation at D:\programs\OptiX\OptiX SDK 7.1.0\SDK\sutil\sutil.cpp(344): glClearColor( 0.212f, 0.271f, 0.31f, 1.0f )

And I find that if I don’t define DO_GL_CHECK in Exception.h, which means not doing GL_CHECK, everything works well…

1 Like