Commit Graph
26 Commits
Author SHA1 Message Date
Unknown W. Brackets 8487e56b42 Move some GLES checks to runtime. 2015-08-24 20:35:50 -07:00
Henrik Rydgård 477568b348 Try to improve GPU vendor detection. 2015-07-21 20:46:59 +02:00
Henrik Rydgard 1467753c35 Don't use a VBO for DrawBuffer drawing. Some crappy ES drivers really don't like dynamic vertex buffers. 2015-01-29 10:35:34 +01:00
Unknown W. Brackets be15181d29 Leave arrays bound in case we can reuse them. 2015-01-11 17:03:15 -08:00
Unknown W. Brackets 7a5e182fd1 Cache the bound VBO/index buffer in glstate.
Though, the index buffer is actually part of VAO state (unlike VBOs...),
so that might change when we implement VAOs.
2015-01-11 16:52:37 -08:00
Henrik Rydgard 3ebd467509 ES buildfix 2015-01-04 17:59:58 +01:00
Henrik Rydgard 6ee1c8e9ee Make sure to disable stencil in UIContext::Begin. Add logic ops to thin3d for completeness. 2015-01-04 17:57:52 +01:00
Unknown W. Brackets 738c99e778 thin3d: Log an unexpected case. 2014-12-20 09:40:03 -08:00
Unknown W. Brackets a392902175 thin3d: Bind index buffer in GL.
Pretty sure this is right.
2014-12-20 09:39:37 -08:00
Henrik Rydgard 7d86cb2c04 Port my old webserver from the predecessor to native 2014-12-15 00:06:54 +01:00
Unknown W. Brackets 92be7b0b1b Fix shutdown crash.
Both glGetShaderiv and glGetShaderInfoLog do not set their outputs
on failure, we need to initialize them.

On app shutdown (e.g. via the back button), we end up in display
shutdown which travels through GLLost which ends up trying to
rebuild the shaders.  This causes an ANR.
2014-11-23 11:01:51 -08:00
Henrik Rydgard 588930dd66 Thin3d: Minor API change in prep for DX11 2014-09-07 10:47:21 +02:00
Henrik Rydgard e96761e400 Hook up Thin3D to GLLost interface. Textures now remember their filename, shaders their source, so they can recreate themselves. 2014-09-06 13:49:01 +02:00
Unknown W. Brackets 731ab24e21 d3d: fix scissoring by using top=actual top. 2014-08-24 19:50:36 -07:00
Unknown W. Brackets d726e7f389 Try not to crash on shader compile errors. 2014-08-23 10:40:12 -07:00
Unknown W. Brackets 1ea54accef Add the prelude to fragment shaders. 2014-08-23 09:27:35 -07:00
Henrik Rydgard 49602416cf More thin3d minor fixes 2014-08-23 10:31:23 +02:00
Unknown W. Brackets 8c35e4b5fc Fix some type conversion warnings. 2014-08-23 00:35:14 -07:00
Unknown W. Brackets 110f640ca8 Fix Linux/Android compilation. 2014-08-23 00:35:13 -07:00
Henrik Rydgard ff5df25135 Add Thin3d support to draw_text (Qt not touched) 2014-08-22 20:54:28 +02:00
Henrik Rydgard a1ff7a4488 Thin3D: Add APIName query. Swizzle texture colors in D3D.
(not sure whether it's best done in the shader or in the texture data...)
2014-08-22 20:54:27 +02:00
Henrik Rydgard 54b298a63e More Thin3D work (textures etc) 2014-08-22 20:54:26 +02:00
Henrik Rydgard 29a60b5952 Thin3d: Add cull mode, other fixes 2014-08-22 20:54:25 +02:00
Henrik Rydgard 1251b6df79 Thin3d: Add some untested texturing stuff 2014-08-22 20:54:25 +02:00
Henrik Rydgard a0f7f877e2 Fix vertex declarations. Hook up some more of D3D9 (doesn't work yet) 2014-08-22 20:54:24 +02:00
Henrik Rydgard c1bc4215f2 Thin3D: A thin OpenGL/D3D9 wrapper for basic rendering.
Only the OpenGL implementation actually works yet.
2014-08-22 20:54:23 +02:00