Commit Graph
41 Commits
Author SHA1 Message Date
Branimir Karadžić 1a1e3113d3 Fixed Vulkan Android swap chain recreation and GL multi-window vsync. Closes #4066, #4067. (#4068) 2026-10-19 20:30:44 -07:00
Branimir Karadžić cad0fde4a4 GL: Return from init on context creation failure instead of fatal. (#4011) 2026-10-01 16:17:27 +00:00
Branimir Karadžić 01dbbbc08c Added swap-chain. (#3959) 2026-09-05 01:44:33 +00:00
Branimir Karadžić fde976604c Raised minimum OpenGL version to 4.3. OpenGLES to 3.0. Removed glsl-optimizer. (#3905) 2026-08-19 10:12:25 -07:00
Branimir Karadžić 4baed6e076 Happy New Year! (#3550) 2026-01-14 16:26:51 +00:00
Бранимир Караџић 959cab248e Added ability to configure backbuffer depth/stencil. 2025-10-29 12:10:41 -07:00
Francisco Facioni 14e0aa5aff [emscripten] Fix MEMORY64 mode (#3437)
EMSCRIPTEN_WEBGL_CONTEXT_HANDLE is 64bit when using MEMORY64 but it's stored as an int 32 bit causing overflow
2025-06-28 21:31:59 +02:00
nathanstouffer b92787168f Fix wasm tinystl compile error (#3406)
* utilize bx::strLen instead of C function

* utilize bx::strCopy instead of C function
2025-02-04 09:49:45 -08:00
Бранимир Караџић 860bafb23f Happy New Year! 2025-01-13 15:45:40 -08:00
Бранимир Караџић 16f5562000 wasm: Fixed build. 2024-10-21 18:21:09 -07:00
Martijn Courteaux e488a07f1b Support both X11 and Wayland in the same build. (#3360)
* Support both X11 and Wayland in the same build.

 - Works for both Vulkan and OpenGL.
 - Remove --with-wayland from genie options.
 - Vulkan loads all three extensions for surface creation instead of only one.
 - Add width and height parameter to GlContext::createSwapChain(), which is needed for EGL to create
   a SwapChain with the given window size.
 - Dirty-fix the example-22-windows to recreate the FrameBuffer by first destroying and then
   recreating to make sure the window is released of its swapchain.
 - Fix dbgText glitch in example-22-windows.
 - Remove old X11-related dependencies for GLFW3.

* Formatting.
2024-10-05 14:33:22 -07:00
João Matos 57d8a0838b Fixes Emscripten wasm64 compile error in glcontext_html5.cpp. (#3282)
Fixes compile error:

```
glcontext_html5.cpp:74:45: error: cast from pointer to smaller type
'EMSCRIPTEN_WEBGL_CONTEXT_HANDLE' (aka 'int') loses information
74 |                 EMSCRIPTEN_WEBGL_CONTEXT_HANDLE context =
reinterpret_cast<EMSCRIPTEN_WEBGL_CONTEXT_HANDLE>(g_platformData.context);
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
2024-04-30 07:16:20 -07:00
Бранимир Караџић 83dfadf673 Happy New Year! 2024-01-14 01:56:36 -08:00
Branimir Karadžić 290295136b Added bx::Location, and removed allocator macros. 2023-04-23 19:19:22 -07:00
Бранимир Караџић 466c6a4e95 Happy New Year! 2023-01-14 10:05:12 -08:00
Бранимир Караџић 2d6c85ac7a Fixed emscripten build. 2022-09-23 10:01:47 -07:00
Cedric Guillemet 6aad365c9e Enable MSAA setting at context creation for Android (#2854) 2022-08-04 06:51:38 -07:00
Бранимир Караџић 4581f14cd4 Happy New Year! 2022-01-15 11:59:06 -08:00
Christophe Dehais 149d870f19 Accept external WebGL context (#2643) 2021-10-28 07:16:50 -07:00
Бранимир Караџић 3214539bad Fixing WebGL + Android instancing. 2021-05-18 20:22:46 -07:00
Бранимир Караџић 41ab81fd51 Cleanup. 2021-05-06 10:59:28 -07:00
582dfc1e4c Fix texture validation logic (#2509)
* fix mip level computation for asmjs and add support for srgb textures in es2/webgl

* fix BX_TRACE in glcontext_html5.cpp

* fix wrong logic in texture validation

Co-authored-by: Sebastian Marketsmueller <sebastianm@hq.unity3d.com>
Co-authored-by: Vladimir Vukicevic <vladimir@pobox.com>
2021-05-06 10:58:37 -07:00
Бранимир Караџић af49c5d264 Happy New Year! 2021-01-14 15:53:49 -08:00
Бранимир Караџић 86583e9bbd Cleanup. 2020-11-25 22:29:40 -08:00
C.Even 8c18906d97 Use emscripten_webgl2_get_proc_address for WebGL2 context (#2316) 2020-11-20 07:23:07 -08:00
Бранимир Караџић d402810fcf Fixed webgl build. 2020-09-17 08:30:01 -07:00
Бранимир Караџић fa826a4935 Fixed webgl build. 2020-09-16 09:11:15 -07:00
Branimir Karadžić 2996246a90 Cleanup. 2020-09-08 07:42:03 -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
Бранимир Караџић 3f6d049470 Fixed Emscripten function calls. 2020-06-19 09:31:32 -07:00
Бранимир Караџић 2cbcb6ea90 RRenamed BX_CHECK to BX_ASSERT. 2020-06-16 10:06:18 -07:00
juj 75384ccfe1 Add checks for Emscripten API return values to make sure API calls are not failing (#2160) 2020-06-05 07:34:11 -07:00
juj 098e6194d9 Update examples to build on Emscripten Wasm. Add separate wasm and wasm2js targets. (#2145) 2020-05-16 19:45:55 -07:00
Vladimir Vukicevic 69eac20a04 fix BX_TRACE in glcontext_html5.cpp (#2111) 2020-04-23 15:43:03 -07:00
Jukka Jylänki d26aac6d2c Create WebGL 2 context if available. Work around Chrome performance bug https://bugs.chromium.org/p/chromium/issues/detail?id=1045643 2020-03-30 15:27:17 +00:00
Бранимир Караџић 82f56b5987 Happy New Year! 2020-01-14 21:37:06 -08:00
Бранимир Караџић 289afdc762 Removed todos. 2019-08-10 08:00:06 -07:00
Vladimir Vukicevic 7e51b38c3f missing assignment to m_canvas on alloc 2019-07-02 01:24:15 +00:00
Vladimir Vukicevic 6b8d0c7ba2 explicitly look up webgl1 or webgl2 functions in html5 2019-07-02 01:24:15 +00:00
Vladimir Vukicevic 142470237e html5 glcontext 2019-07-02 01:24:15 +00:00