Commit graph

1688 commits

Author SHA1 Message Date
Clownacy
767262ed8c Handle a malloc failure better
No memory leak
2020-01-20 14:48:12 +00:00
Clownacy
23eed95ff4 Fix CMake build script not finding FindOpenGLES2.cmake 2020-01-20 14:01:22 +00:00
Clownacy
0423614dca More-efficient OpenGL ES 2.0 font textures 2020-01-20 13:52:50 +00:00
Clownacy
ede541db0a Clean up the OpenGL shaders a bit 2020-01-20 13:51:32 +00:00
Clownacy
4cbc56e272 Add OpenGL ES 2.0 renderer 2020-01-20 13:49:30 +00:00
Clownacy
0352af333b Fix another typo 2020-01-17 11:08:36 +00:00
Clownacy
a40c3d7b1b Perform cleanup when OpenGL's Backend_Init fails 2020-01-17 10:54:49 +00:00
Clownacy
0c9c0115cf Whoops. Fix typo. 2020-01-17 10:54:34 +00:00
Clownacy
22622ae69a Merge branch 'accurate' into portable 2020-01-17 10:37:21 +00:00
Clownacy
6764f17ab9 Added bugfix for StartDirectDraw failure
The original code didn't account for it failing, which leads to
annoying bugs happening whenever it does fail.

Now, the game just closes, like it does with any other init error.
2020-01-17 10:35:43 +00:00
Clownacy
faa96094b4 Use SDL's GetProcAddress function for OpenGL
Also added extra sanity checks
2020-01-17 10:25:18 +00:00
Clownacy
54189c598d Explicitly init SDL2's video subsystem 2020-01-16 16:36:03 +00:00
Clownacy
f0d1706907 Fix SDL2 compilation when path contains a space
https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/fix-space-in-path.patch

Hope this gets fixed upstream. This is a dumb bug.
2020-01-16 15:25:25 +00:00
Clownacy
1c0c88074e Fix Resources.cpp Makefile rule 2020-01-15 18:24:52 +00:00
Clownacy
c5f1725a92 More capitalisation 2020-01-15 08:23:47 +00:00
Clownacy
f7b8373ad7 Merge branch 'accurate' into portable 2020-01-15 08:18:30 +00:00
Clownacy
727b3eee0d Capitalise 'Clang' 2020-01-15 08:16:57 +00:00
Clownacy
a32593f51a Make pkg-config user-definable
The Switch port relies on an alternate pkg-config
2020-01-15 08:06:54 +00:00
Clownacy
1c65eee284 Remove GLEW from the list of dependencies 2020-01-15 08:04:04 +00:00
Clownacy
ec270cf88c Merge branch 'accurate' into portable 2020-01-15 08:03:33 +00:00
Clownacy
48651f0b94 Backport a readme line from the portable branch 2020-01-15 08:02:50 +00:00
Clownacy
9995ccb7cc The Makefile doesn't support MSVC 2020-01-15 08:01:33 +00:00
Clownacy
c7bd555eef Merge branch 'accurate' into portable 2020-01-15 08:01:23 +00:00
Clownacy
dba45f7d0f Makefile: Specify file extensions
This matches the portable branch's CMakeLists.txt, and make mixed
C/C++ code less awkward-looking.
2020-01-15 07:54:33 +00:00
Clownacy
a09f73f2ea Specify that WARNINGS enables compiler warnings 2020-01-15 07:46:02 +00:00
Clownacy
a1937b4730 Backport the portable branch's warnings 2020-01-15 07:45:36 +00:00
Clownacy
5a72140a5d Rename glad.cpp back to glad.c 2020-01-15 07:31:35 +00:00
Clownacy
776f01777a Merge branch 'accurate' into portable 2020-01-15 07:28:18 +00:00
Clownacy
2a497a4aae Backport the enhanced branch's C support
Currently, the Makefile only supports C++, despite Glad being C.
2020-01-15 07:24:33 +00:00
Clownacy
d76b074aa0 Switched from GLEW to GLAD
One less set of license obligations to satisfy (GLAD-generated files
are public-domain).
2020-01-15 07:11:43 +00:00
Clownacy
449a09b09e Fix an occational invalid memory read
Stupid floating-point rounding errors. Had to undo a fancy
optimisation to avoid it.
2020-01-09 09:10:24 +00:00
Clownacy
78a066ce75 Note some inaccurate stack frames 2020-01-09 06:58:04 +00:00
Clownacy
c831031ba4 Merge branch 'accurate' into portable 2020-01-09 06:39:34 +00:00
Clownacy
3c7a1b285d Ignore the build folder, and tweak paths 2020-01-09 06:38:14 +00:00
Clownacy
2752deccdf Ignore some more files 2020-01-09 06:36:24 +00:00
Clownacy
35e4c6e766 Mark TSC files as binary, not text 2020-01-09 06:32:10 +00:00
Clownacy
242aa05920 Remove some whitespace 2020-01-09 05:43:05 +00:00
Clownacy
4faf94e951 Add missing #include 2020-01-08 19:12:12 +00:00
Clownacy
9e5406eb39 Merge branch 'accurate' into portable 2020-01-08 13:35:20 +00:00
Clownacy
406087bebb Added a missing #include in Organya.cpp 2020-01-08 13:34:54 +00:00
Clownacy
31adc338e4 Remove a newline that isn't in the accurate branch 2020-01-08 13:34:00 +00:00
Clownacy
9cbaa0be00 Merge branch 'accurate' into portable 2020-01-08 13:16:21 +00:00
Clownacy
a5df6ebc72 Remove SET_RECT macro
I should probably remove WindowsWrapper.h from this branch now, and
just make files use windows.h directly.
2020-01-07 23:15:33 +00:00
Clownacy
cb4bd02ab5 More-accurate ValueView.cpp variable arrangement
Finally done with this
2020-01-07 22:20:22 +00:00
Clownacy
5adc06536b More-accurate Triangle.cpp variable arrangement 2020-01-07 22:13:37 +00:00
Clownacy
3f2d5c3e25 More-accurate Stage.cpp variable arrangement 2020-01-07 22:08:10 +00:00
Clownacy
32d635581a Sound.cpp variable arrangement tweaks
Not much can be done for this file, considering how heavily it was
modified in the Linux port.

While I was here, I noted the unused .wav loading function.
2020-01-07 22:03:49 +00:00
Clownacy
e459364a33 More-accurate Shoot.cpp variable arrangement 2020-01-07 21:58:35 +00:00
Clownacy
cef901792b More-accurate SelStage.cpp variable arrangement 2020-01-07 21:53:21 +00:00
Clownacy
74cd1b0473 More-accurate Profile.cpp variable arrangement 2020-01-07 21:50:36 +00:00