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