Commit Graph
50 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 26bc250e9b cleanup 2015-02-09 23:12:51 +01:00
Henrik Rydgard 91ab271101 Return a 0 d3dx version if failed to get any of the function pointers 2015-02-02 09:26:16 +01: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
Henrik Rydgard 813c12e40f Thin3d preset GLSL shaders: Make them identical to the old GL-only shaders by adding precision qualifiers 2015-01-27 00:12:11 +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
Henrik Rydgard 7f0387a31e Improves buffer overflow protection in LOG macros. Replaces #250.
Also some warning fixes.
2015-01-02 16:36:43 +01:00
Henrik Rydgard 6ec765dcf4 Make thin3d clear color consistent (R/B was swapped between GL and DX)
Thanks unknown.
2015-01-01 11:25:27 +01:00
Henrik Rydgard 823dd6f72a Just some logging 2014-12-31 17:11:31 +01:00
Henrik Rydgard b891268d60 Clean up texture loading in thin3D a bit 2014-12-31 15:28:14 +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 33d496d76f Add support for D3D9Ex 2014-09-09 22:27:18 +02:00
Unknown W. Brackets d5711f360d thin3d: Fix some leaks in d3d9 code. 2014-09-07 13:46:09 -07:00
Henrik Rydgard 588930dd66 Thin3d: Minor API change in prep for DX11 2014-09-07 10:47:21 +02:00
Unknown W. Brackets 69bad8ba74 Linux buildfix. 2014-09-06 08:13:02 -07: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 58f8b7aa21 thin3d: Avoid dynamic texturing locking.
Seems like it requires checking caps, and these textures are probably
not dynamic anyway.
2014-09-01 08:41:36 -07:00
Unknown W. Brackets 2d8f6f8287 thin3d: Simplify d3d9 debug dll loading. 2014-09-01 08:09:20 -07:00
Unknown W. Brackets 3ab1f8baa9 thin3d: Use dynamic index/vertex buffers. 2014-09-01 08:08:51 -07:00
Henrik Rydgard 9a72d5323b Change thin3d to compile model 2_0 shaders by default. We can add a way to choose 3_0 later. 2014-08-31 09:10:41 +02:00
Unknown W. Brackets ca16eb2857 Fix some type conversion warnings. 2014-08-30 02:05:21 -07:00
Unknown W. Brackets 731ab24e21 d3d: fix scissoring by using top=actual top. 2014-08-24 19:50:36 -07:00
Unknown W. Brackets c141c368fc Skip some conversion warnings. 2014-08-24 01:25:59 -07:00
Unknown W. Brackets 6b223e2cc6 d3d: Fix a crash on a shader compile error. 2014-08-23 21:53:00 -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
Unknown W. Brackets 6b5e9f6b7c Linux buildfix. 2014-08-23 02:12:13 -07:00
Henrik Rydgard 49602416cf More thin3d minor fixes 2014-08-23 10:31:23 +02:00
Henrik Rydgard 6f96004381 Thin3d D3D: More system information, other minor fixes 2014-08-23 10:20:27 +02:00
Henrik Rydgard 75b7ccd739 Clean up D3DX loader a little 2014-08-23 10:01:03 +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 1401de50dc Thin3d: Minor shader cleanup 2014-08-22 21:26:46 +02: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 ecb33f005e Thin3D now actually draws some stuff 2014-08-22 20:54:27 +02:00
Henrik Rydgard 8774fcad94 Some more thin3d 2014-08-22 20:54:26 +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 bf41d05dfc Switch to Thin3DTexture. GL still works, d3d still broken. 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