Nsight, Visual Studio Edition not working, OpenGL4.5, Windows10
Win10/VS2015/Simple OpenGL Sample OpenGL Vendor:NVIDIA Corporation Renderer:GeForce GTX 960M/PCIe/SSE2 OpenGL Version:4.5.0 NVIDIA 372.70 GL Context: glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 5); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); When I press 'pause and capture frame', Nsight reports 'It is undefined to draw without active program in core profile'. How can I fix this problem?
Win10/VS2015/Simple OpenGL Sample

OpenGL Vendor:NVIDIA Corporation
Renderer:GeForce GTX 960M/PCIe/SSE2
OpenGL Version:4.5.0 NVIDIA 372.70

GL Context:
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 5);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);

When I press 'pause and capture frame', Nsight reports 'It is undefined to draw without active program in core profile'.

How can I fix this problem?

#1
Posted 10/29/2016 05:45 PM   
Hi zhangenjie, the functions shown above is to use glfwWindowHint to set all the required options for GLFW, you still need to do rendering. Regards, Letitia
Hi zhangenjie,

the functions shown above is to use glfwWindowHint to set all the required options for GLFW, you still need to do rendering.

Regards,
Letitia

#2
Posted 12/23/2016 06:58 AM   
Scroll To Top

Add Reply