1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-23 00:52:18 +01:00

59 Commits

Author SHA1 Message Date
FunkyFr3sh
4211df4c29 render to texture test 2018-09-18 01:14:18 +02:00
FunkyFr3sh
9400eb7b75 preparation for more opengl test functions 2018-09-17 21:27:34 +02:00
FunkyFr3sh
4afbbbb5cb add texture test upload to ensure we don't end up with black screens on upload failure 2018-09-16 21:03:46 +02:00
FunkyFr3sh
6cb0b07621 fix for last commit 2018-09-15 16:32:36 +02:00
FunkyFr3sh
ac4f993976 separate opengl render code into multiple functions 2018-09-15 16:12:03 +02:00
FunkyFr3sh
93c240d31f save error state before we reset it on texture creation 2018-09-11 18:08:36 +02:00
FunkyFr3sh
f5698f2d0b fix gdi palette bug + refactoring 2018-08-23 00:57:31 +02:00
FunkyFr3sh
084c7b113b use 4 textures to reduce latency 2018-08-22 21:51:38 +02:00
FunkyFr3sh
a4a452a7f2 fix for auto renderer warning not showing 2018-07-22 15:09:51 +02:00
FunkyFr3sh
99406d1d64 force glFinish with vsync 2018-07-16 15:35:45 +02:00
FunkyFr3sh
c5975902ee use multiple textures to reduce latency 2018-07-16 13:51:43 +02:00
FunkyFr3sh
d98cf4f6ea fix for non working vsync 2018-07-16 12:27:41 +02:00
FunkyFr3sh
30b430dbc7 use different workaround for macOS bug 2018-07-06 00:32:47 +02:00
FunkyFr3sh
75c25f515b temporary workaround for macOS bug with crossover wine 14.1 2018-07-05 23:51:27 +02:00
FunkyFr3sh
2e6a264738 call DrawText before CounterStart 2018-07-05 19:41:48 +02:00
FunkyFr3sh
a40392e11a only update textures if necessary 2018-07-04 23:27:12 +02:00
FunkyFr3sh
897fdb5bbb allocate memory for surfaces on CreateDIBSection failure 2018-07-01 21:27:44 +02:00
FunkyFr3sh
4ea226b743 check for errors in render loop 2018-06-26 14:09:47 +02:00
FunkyFr3sh
7108f2af7a on screen debug 2018-06-26 14:06:02 +02:00
FunkyFr3sh
fa54189259 show opengl unavailable warning 2018-06-22 04:27:34 +02:00
FunkyFr3sh
4fbd905276 only enable GL_TEXTURE_2D if no shader available 2018-05-24 06:25:11 +02:00
FunkyFr3sh
52bc5ad23f prevent switching to GDI on core profile 2018-05-24 05:21:24 +02:00
FunkyFr3sh
90758a08c8 move wglSwapIntervalEXT to opengl.c 2018-05-23 02:03:45 +02:00
FunkyFr3sh
5ed60e662e remove redundant stuff from render loop 2018-05-23 01:11:40 +02:00
FunkyFr3sh
3fcc17b336 allow GL_RGBA8 without autorenderer to raise compatibility 2018-05-22 04:23:05 +02:00
FunkyFr3sh
09c17d80f1 don't use GL_RGBA8, it's way too slow 2018-05-22 04:16:38 +02:00
FunkyFr3sh
d8cee91ee8 try to use GL_LUMINANCE first for better performance 2018-05-21 22:32:19 +02:00
FunkyFr3sh
6d57bbbfcb remove unused stuff 2018-05-20 21:59:47 +02:00
FunkyFr3sh
d43983635c random tweaks 2018-05-20 20:22:11 +02:00
FunkyFr3sh
b26738db5d fix cutscene double scale bug 2018-05-20 19:23:45 +02:00
FunkyFr3sh
40a4d98c29 update vbos outside of lock 2018-05-20 18:58:47 +02:00
FunkyFr3sh
f06045498f update vertexcoord if no fbo available 2018-05-20 17:39:14 +02:00
FunkyFr3sh
7b0fc1ab57 update vbo on fbo failure 2018-05-20 07:45:51 +02:00
FunkyFr3sh
9127c431ec update vbo only if needed 2018-05-20 07:06:32 +02:00
FunkyFr3sh
d36d432c1a avoid deprecated functions if possible 2018-05-20 06:27:53 +02:00
FunkyFr3sh
fd939bfff4 choose best renderer automatically 2018-05-18 16:18:34 +02:00
FunkyFr3sh
017ce900d8 adjust formats 2018-05-14 10:35:30 +02:00
FunkyFr3sh
51d499758d delete both shaders on failure 2018-05-13 19:43:03 +02:00
FunkyFr3sh
fd4a893729 use POT textures with up to 4096*4096 of size 2018-05-13 11:15:22 +02:00
FunkyFr3sh
6a2ab6378d fix POT texture size 2018-05-12 20:10:20 +02:00
FunkyFr3sh
7223603a08 don't draw whole texture into framebuffer 2018-05-12 19:54:55 +02:00
FunkyFr3sh
87450e320f preliminary libretro GLSL shader support https://github.com/libretro/glsl-shaders 2018-05-12 12:28:07 +02:00
FunkyFr3sh
0e511f1a7d set maxfps to 125 for opengl by default 2018-05-10 14:57:12 +02:00
FunkyFr3sh
d1fb484e80 prevent GPU from blocking main thread 2018-05-10 14:45:39 +02:00
FunkyFr3sh
09ada60736 check for errrors and add fallback solution 2018-05-10 05:22:32 +02:00
FunkyFr3sh
0a5e4854d4 make sure all required functions are available 2018-05-09 08:14:10 +02:00
FunkyFr3sh
ac6221a68a opengl cleanup 2018-05-09 05:56:44 +02:00
FunkyFr3sh
d55a025ee2 detach shaders and delete program 2018-05-09 05:41:58 +02:00
FunkyFr3sh
b053bc377e OpenGL: add 8bit palette conversion shader for better performance - remove pixel buffer objects - temporary remove scaling filters (need to be replaced with shaders) 2018-05-09 05:09:57 +02:00
FunkyFr3sh
5a2748f3d1 add visual studio project files 2018-05-06 10:52:06 +02:00