[osg-users] Graphics context issues
Sebastian Messerschmidt
sebastian.messerschmidt at gmx.de
Tue Jul 10 03:30:42 PDT 2018
Windows tells me:
Screen 0:
Windows Error #170: [Screen #0]
GraphicsWindowWin32::makeCurrentImplementation() - Unable to set current
OpenGL rendering context. Reason: The requested resource is in use.
If I move your code into the callback it displays the correct
information however. Tested on Windows7:
Vendor: NVIDIA Corporation
Renderer: GeForce GTX TITAN Black/PCIe/SSE2
GL Version: 4.5.0 NVIDIA 372.90
Tested on Windows 10 (Nvidia Optimus) as well. The output in the console
is fine, but I see invalid rendering too.
Intel drivers aren't known to be a good reference for OpenGL
implementations, so I'd stick to Robert's advice and go for a
shader-based approach.
Cheers
Sebastian
Am 10.07.2018 um 10:39 schrieb Ryan Thoryk:
>
> SMesserschmidt wrote:
>> Hi Ryan,
>> Can you create a minimal _compilable_ example, so more people might
>> check what is wrong?
>>
>
>
> Sure - I've attached an osglight-derived example. Compile with:
>
> Code:
>
> g++ -o osglight osglight.cpp -losg -lOpenThreads -lGL -losgUtil -losgViewer -losgDB
>
>
>
>
> Ryan
> [/code]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=74301#74301
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/osglight_161.cpp
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
More information about the osg-users
mailing list