Commit Graph

135 Commits

Author SHA1 Message Date
Henrik Rydgård
5f8118b82b Separate T3DCreate* into its own header to avoid including Windows.h etc in some cases. 2018-02-25 10:27:59 +01:00
Henrik Rydgård
1b9c2f26f9 Whitelist mapbuffer usage to NVIDIA only (should maybe add Qualcomm too), it's murder on Mali 2018-02-12 11:46:19 +01:00
Unknown W. Brackets
20b532fc71 GLES: Use buffer storage and explicit flush.
This is just as fast as using glMapBufferRange on desktop.
2018-02-11 13:14:28 -08:00
Henrik Rydgård
d30f1c2019 Fix another Qt memory leak 2018-02-04 14:13:47 +01:00
Henrik Rydgård
bd3a681fd3 Enough JNI/threading hackery to get it to run on Android! Broken readbacks make it crash alot though. 2018-01-28 17:30:33 +01:00
Henrik Rydgård
ccdb4d186d gl-render-manager: Fix HW tesselation. Remove 1D texture support, likely no benefit. 2018-01-27 15:10:17 +01:00
Unknown W. Brackets
bab66e8542 Windows: Fix UI text measurements with &.
These APIs don't take into account &&, which caused Homebrew && Demos to
be too wide.
2017-12-10 14:57:54 -08:00
Henrik Rydgård
7d0fc9ce65 Rework GL lost-device to work more like Vulkan. Gets rid of gl_lost manager etc. 2017-12-07 15:05:59 +01:00
Unknown W. Brackets
715a7b7318 Global: Silence some unused declaration warnings.
These things aren't used on Android.
2017-12-03 19:22:03 -08:00
Unknown W. Brackets
bd1ed897cf Global: Fix some warnings. 2017-11-25 14:08:49 -08:00
Unknown W. Brackets
3431653791 UI: Draw actual, not aligned, text width.
No need to overdraw.
2017-11-23 09:05:17 -08:00
Unknown W. Brackets
826e9d2ee1 UI: Clear font bitmap after aligning size.
Otherwise we get remnants from previous draws, oops.
2017-11-23 09:04:15 -08:00
Henrik Rydgård
3ecd7b4c02 Get rid of collision-prone font cache keys. Stress the font cache a little less on slider dialogs. 2017-11-22 22:44:34 +01:00
Henrik Rydgård
2c86217552 Cleanup GPU vendor detection a bit, use it to avoid the issue mentioned in #9545 2017-11-21 16:19:28 +01:00
Henrik Rydgård
ee768ca949 Logging improvements, avoid resetting the Android text drawer unnecessarily 2017-11-10 13:02:24 +01:00
Henrik Rydgård
3cc5d8f40a More minor vulkan fixes and cleanups. Don't actually call "Resized" if the size stays the same. 2017-11-10 12:41:06 +01:00
Henrik Rydgård
0a2b20bf59 More logging and tweaking 2017-11-10 12:09:42 +01:00
Henrik Rydgård
4970668b99 Try harder to free up memory from the Android native font rendering system. Might help #10069 2017-11-07 12:31:03 +01:00
Henrik Rydgård
d1d1e1f742 Fix issue with caret position in text boxes caused by a bad hash function. Fletcher is 2-bytes-at-a-time and thus very inappropriate for short strings. 2017-10-24 22:45:27 +02:00
Henrik Rydgård
ed602a3319 UWP buildfix. See comments in #9575 2017-10-11 14:27:50 +02:00
Unknown W. Brackets
1802d7a45e GLSL: Set extension flags for elided core exts.
So that we know we have them, i.e. on Apple.
2017-09-20 12:23:11 -07:00
Unknown W. Brackets
e754cca288 GLES: Add OpenGL 3.x core profile support.
Need to define #version everywhere and avoid varying/etc.
2017-09-20 12:22:01 -07:00
twinaphex
4855b2d6f1 mingw patches 2017-08-31 22:15:05 +02:00
Henrik Rydgård
6ee8cb5f2e Review fixes, thanks unknown 2017-08-08 10:14:20 +02:00
Henrik Rydgård
b87ae5d7db Consolidate DPI/sizing handling on Android 2017-08-07 15:55:19 +02:00
Henrik Rydgård
f4cf501cf6 Separate X and Y dpi_scale 2017-08-07 13:37:01 +02:00
Unknown W. Brackets
c711b00d4c GPU: Clean up some GLES3 defaults.
It should default both of them the same way.  And we already set subimage
on desktop.
2017-07-01 16:16:59 -07:00
Henrik Rydgård
e4d2c95968 Buildfix qt 2017-06-06 12:25:40 +02:00
Henrik Rydgård
28984ceef4 Fix some comments 2017-06-06 11:31:52 +02:00
Henrik Rydgård
3a640ff8aa Address comments, make things closer to the Win32 code. Things work better. 2017-06-06 11:30:20 +02:00
Henrik Rydgård
0af19719cb Fix vertical positioning, eliminate double-& 2017-06-05 23:45:58 +02:00
Henrik Rydgård
0d3d642371 It works! 2017-06-05 23:09:12 +02:00
Henrik Rydgård
0bf92a4fa2 Font rendering code runs but it sure ain't right 2017-06-05 23:09:11 +02:00
Henrik Rydgård
d9c43642c2 Fix assorted JNI issues, the calls work now. 2017-06-05 23:09:10 +02:00
Henrik Rydgård
871260fcc4 Start sketching native text rendering for Android 2017-06-05 23:09:04 +02:00
Henrik Rydgård
6e98dbb574 Split out the Qt font drawer in its own file. 2017-06-04 11:52:14 +02:00
Henrik Rydgård
8d3b18478c Split out DrawTextWin32 into its own file, to be further split later. 2017-06-04 11:52:12 +02:00
Henrik Rydgård
32ae86f708 Split TextDrawer into interface and implementation. 2017-06-04 11:52:11 +02:00
Henrik Rydgård
01635a5cd6 Android: Just like on Windows, prompt to restart when changing graphics backend. 2017-05-31 11:12:11 +02:00
Henrik Rydgård
21fe73c8e7 Switch strncpy to truncate_cpy in a bunch of places. 2017-05-26 19:04:08 +02:00
Henrik Rydgård
7d0cfbabe7 thin3d gles: Unbind buffers after drawing. Fixes #9715 2017-05-24 12:06:02 +02:00
Enyby
f7deda22ae Update gpu_features.cpp
Add additional check for valid parsing GL ES version by driver for work on some bad drivers. See #9688
2017-05-19 00:02:10 +03:00
Henrik Rydgård
60378a0dcb Minor GameInfo memory handling improvements. Still not great. 2017-05-18 12:41:42 +02:00
Enyby
66507e6607 Update gpu_features.cpp
Example of string 'OpenGL ES 2.0 (4.0.0 - Build 10.18.10.4226)'. Old code get 0.0 from it.
New code work right.
2017-05-16 13:26:49 +03:00
Henrik Rydgard
d3ff35b2c0 Fix to partial restarts (when switching backends), plus misc. Helps #9666 2017-05-05 12:31:06 +02:00
Henrik Rydgard
6b46f8ea52 Some paranoia in CheckGLExtensions, due to a reported crash in strlen() 2017-04-02 23:59:17 +02:00
Unknown W. Brackets
8f4d1634ad UI: Add simple support for a custom background.
No UI.  Essentially, this is a cleaned up version of xiushudongfang's
implementation that supports all platforms, but no selection UI.
2017-03-26 07:52:46 -07:00
xebra
04e1e1a460 GLES:Fix compatibility checks for instanced rendering. 2017-03-26 19:00:20 +09:00
Unknown W. Brackets
a36ecb7065 UI: Track translate/scale/fade transform by screen.
This translates drawing, scissor, and touch to the transform.
2017-03-19 15:42:13 -07:00
Henrik Rydgard
908193e894 Rework Android lost/restore lifecycle again. Can autorotate screen without crashing again. Should help #9295 and maybe #8906. 2017-03-18 15:21:26 +01:00