|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #49083] demo camlight fails using qt graphics_toolkit |
Date: | Thu, 15 Sep 2016 08:47:11 +0000 (UTC) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:49.0) Gecko/20100101 Firefox/49.0 |
Follow-up Comment #9, bug #49083 (project octave): The attached patch fixes the original issue from comment #0 for me by checking the gl error after GL_MULTISAMPLE and reacting accordingly in gl-render.cc. >From [1]: GL_MULTISAMPLE is available in OpenGL 1.3 and later. GL_INVALID_ENUM is generated by glEnable "if cap is not one of the values listed previously". That might include the case when calling a feature on a version that doesn't support it. I guess from its documentation [2] that glIsEnabled would generate the same error. In Octave on Windows, "__opengl_info__" returns the following for me: version = 1.1.0 vendor = Microsoft Corporation renderer = GDI Generic extensions = GL_WIN_swap_hint GL_EXT_bgra GL_EXT_paletted_texture Is that the GL_VERSION or the version of the graphics driver? [1]: https://www.opengl.org/sdk/docs/man2/xhtml/glEnable.xml [2]: https://www.opengl.org/sdk/docs/man2/xhtml/glIsEnabled.xml (file #38514) _______________________________________________________ Additional Item Attachment: File name: bug45542_GL_MULTISAMPLE.patch Size:2 KB _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?49083> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |