Commit Graph
64 Commits
Author SHA1 Message Date
Бранимир Караџић 4581f14cd4 Happy New Year! 2022-01-15 11:59:06 -08:00
Бранимир Караџић af49c5d264 Happy New Year! 2021-01-14 15:53:49 -08:00
Branimir Karadžić 2996246a90 Cleanup. 2020-09-08 07:42:03 -07:00
Бранимир Караџић d1685a366a Fixed build. 2020-09-03 23:45:20 -07:00
Бранимир Караџић 8f4750b199 Cleanup. 2020-09-02 20:43:47 -07:00
云风 2480ea3dbe avoid gcc warnings: cast-function-type (#2252) 2020-09-01 20:20:03 -07:00
JW 97bafaa7b8 Check for GLX vblank extensions more properly.
Previously, the code checked for an extension by checking if the pointer returned from
glXGetProcAddress was NULL or not.

But in truth, you can get a non-NULL pointer even if that extension is not supported.
Now, we parse the glXQueryExtensionsString() results.

GLFW code that does similar checks, for reference: https://github.com/glfw/glfw/blob/51bb76c7c3de934b2dd3affcdc297a32e4817835/src/glx_context.c#L208

fixes #1367
2020-01-24 21:26:56 -08:00
Бранимир Караџић 82f56b5987 Happy New Year! 2020-01-14 21:37:06 -08:00
Бранимир Караџић 701fc43149 GLX: Use glXCreateContextAttribsARB to create versioned context. It makes RenderDoc work without specifying GL version. 2019-03-06 09:49:28 -08:00
Бранимир Караџић 3f3a9450ba Happy New Year! 2019-01-13 17:13:25 -08:00
Mathieu-Andre Chiasson da6274299d can now use renderdoc on linux with OpenGL back-end 2018-12-18 17:19:00 -05:00
Branimir Karadžić e8ff30accc Revert "Small stylistic change"
This reverts commit 0b746ec0d8.
2018-11-22 16:03:06 -08:00
TheComet 0b746ec0d8 Small stylistic change 2018-11-22 23:54:38 +01:00
TheComet 749bd14db4 fixes #1559 - Support opening default display when the user specifies a custom window handle but no display device 2018-11-22 23:32:44 +01:00
Branimir Karadžić 939c5f905f Revert "Cleanup."
This reverts commit 97fe8e48a1.
2018-06-24 19:10:44 -07:00
Branimir Karadžić 97fe8e48a1 Cleanup. 2018-05-05 19:28:09 -07:00
Branimir Karadžić 14e861747e Fixed issue #1326. 2018-02-03 10:09:33 -08:00
Branimir Karadžić f44c8e2b14 Happy New Year! 2018-01-01 11:16:06 -08:00
Andrew Johnson 5cf641c3db Ensure we get a debug context as appropriate in glx. (#1034)
If BGFX_CONFIG_DEBUG is defined, get a GL debug context. This mirrors the
behavior from wgl, and allows KHR_debug/ARB_debug_output messages to work.
2017-02-02 08:58:49 -08:00
Branimir Karadžić 3b83f53ab1 Happy New Year! 2017-01-01 00:18:41 -08:00
Branimir Karadžić 4117e79e6c GLX: Set default context after swap chain destruction. 2016-11-15 19:41:22 -08:00
Branimir Karadžić 72be9be87d Added ability to expose internal data (D3D device/GL context). 2016-01-13 21:18:59 -08:00
Miodrag Milanovic f9a7c6ec0b Use BX_PLATFORM_BSD for all BSD based platforms 2016-01-04 18:08:46 +01:00
Branimir Karadžić 4bb2b623d3 Happy New Year! 2016-01-01 00:11:04 -08:00
Branimir Karadžić 05f94f44be Report HiDPI display support thru caps. 2015-08-17 18:07:00 -07:00
Branimir Karadžić a528554e67 Cleanup passing platform window/context data. 2015-04-20 16:22:40 -07:00
Branimir Karadžić 288361b5c1 Pass all reset flags to glcontext. 2015-04-06 21:31:26 -07:00
Branimir Karadžić b19c391570 GLX: Fixed context destroy. 2015-03-25 21:23:48 -07:00
Branimir Karadžić 4b60ddf44d Fixed GLFW3 integration on Linux. 2015-03-24 23:21:32 -07:00
Branimir Karadžić 6ba3a60c1a Fixed amalgamated build with multiple renderers. 2015-03-21 22:11:59 -07:00
Branimir Karadžić 7279a31768 GL: Cache current GL context. Issue #262. 2015-02-17 11:50:31 -08:00
Branimir Karadžić 1d4eb335a7 Removed X11 include in bgfxplatform.h. 2015-02-06 16:49:04 -08:00
Branimir Karadžić aea2cd2ce3 Fixed GLX context. 2015-01-31 13:55:02 -08:00
Branimir Karadžić c65f04ae05 EGL: Added ability to use EGL on Linux. 2015-01-31 13:47:27 -08:00
Branimir Karadžić bb96d76c0a Added discard framebuffer resources after use. 2015-01-11 18:00:08 -08:00
Branimir Karadžić c25dd466be Updated copyright year. 2015-01-01 15:04:46 -08:00
Branimir Karadžić 3e4b82e7fe Fixed typo. Issue #196. 2014-11-30 09:06:47 -08:00
Branimir Karadzic 9ba0956812 GLX: Added swap chain support. 2014-09-28 14:38:52 -07:00
Branimir Karadžić f4c7f69ed7 Added swap chain caps. 2014-09-23 20:35:39 -07:00
Branimir Karadžić 2c03cf4927 Added multiple windows support. 2014-09-07 17:17:38 -07:00
Branimir Karadžić 140e990ab4 Added RaspberryPi platform. 2014-08-24 17:41:41 -07:00
Branimir Karadžić 8c55c8f8a9 FreeBSD ifdefs. 2014-08-06 21:53:32 -07:00
Branimir Karadžić d525e96dd9 Manually integrated some FreeBSD changes from @lye #132 pull request. 2014-08-06 21:17:14 -07:00
Branimir Karadžić 85c5172a29 Changed GLES macro to use version number. 2014-03-29 23:12:15 -07:00
bkaradzic f554176645 GL import fixes for Linux. 2014-02-19 20:53:06 -08:00
Branimir Karadžić db735f5ff6 GL import code cleanup. Added ability to load GLES library dynamically. 2014-02-18 23:36:13 -08:00
Branimir Karadžić 9ff1d0c513 Updated copyright year. 2014-02-10 22:07:04 -08:00
bkaradzic 11722f17a1 Fixed GCC warning. 2013-12-07 10:26:17 -08:00
bkaradzic 5b4d4b37fa Fixed GL imports. 2013-12-07 22:01:32 -08:00
bkaradzic a51fd54c23 Fixed permissions. 2013-10-19 15:36:26 -07:00