opentk / GLWpfControl

A fast native control for OpenTK 4.x + 3.x on WPF.
MIT License
192 stars 48 forks source link

Failed to use opengl version 3.3+ #100

Open lyfncf opened 1 year ago

lyfncf commented 1 year ago

The glwpfcontrol showed nothing when I set the opengl version of GLWpfControlSettings as 3.3 or plus on my computer. In fact, the same program worked on another computer. I am sure the computer support opengl 4.6 and the learningopengl examples works on it when using opengl 4.6. It is strange that even though I set the opengl version as major version = 1 and minor version = 1, the advanced opengl api still worked. what's more, the program showed something that I expected when I used "GL.Finished()" after the rendering code. So what happened when I changed the major version and minior version of GLWpfControlSettings? 1) displayed nothing but worked on another computer image 2) worked image 3) worked image 4) worked but strange image

sby-yuui-hashimoto commented 1 year ago

i am also facing the same issue. Even though the OpenGL version on my computer is 4.6, I set the major version to 4 and the minor version to 6, and when I use the "GL Finish" command, it doesn't render

NogginBops commented 1 year ago

What GPU are you using @lyfncf and @london0225 ? And what driver version? Can you guys make sure that you have the wgl_nv_dx_interop2 available in your driver?

sby-yuui-hashimoto commented 1 year ago

Thank you for answering. The GPU uses Intel(R) UHD Graphics 770. The driver version is 30.0.101.2079, so wgl_nv_dx_interop2 should be available. You can check it on the following page. https://www.geeks3d.com/20190118/intel-graphics-driver-25-20-100-6519-released-vulkan-1-1-95-and-new-opengl-extensions-added/

MikaelStalvik commented 1 year ago

I also face the same problem. I cannot set version to more than 3.1. I have some C++ code using GLFW that can properly use OpenGL4.6. Renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2

softwareantics commented 1 year ago

I have the same issue running a Intel UHD.

blair-ahlquist commented 1 year ago

Same issue with Intel(R) Iris(R) Xe Graphics. I can run OpenGL 4.6 (and other versions) if I call GL.Finish().