diff --git a/CMakeLists.txt b/CMakeLists.txt
index a70330c5ae..5cceb40913 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -560,6 +560,16 @@ add_library(Common STATIC
Common/Render/TextureAtlas.h
Common/Render/DrawBuffer.cpp
Common/Render/DrawBuffer.h
+ Common/Render/Text/draw_text.cpp
+ Common/Render/Text/draw_text.h
+ Common/Render/Text/draw_text_android.cpp
+ Common/Render/Text/draw_text_android.h
+ Common/Render/Text/draw_text_qt.cpp
+ Common/Render/Text/draw_text_qt.h
+ Common/Render/Text/draw_text_win.cpp
+ Common/Render/Text/draw_text_win.h
+ Common/Render/Text/draw_text_uwp.cpp
+ Common/Render/Text/draw_text_uwp.h
Common/System/Display.cpp
Common/System/Display.h
Common/Thread/Executor.cpp
@@ -1062,14 +1072,6 @@ endif()
add_library(native STATIC
${nativeExtra}
- ext/native/gfx_es2/draw_text.cpp
- ext/native/gfx_es2/draw_text.h
- ext/native/gfx_es2/draw_text_win.cpp
- ext/native/gfx_es2/draw_text_win.h
- ext/native/gfx_es2/draw_text_qt.cpp
- ext/native/gfx_es2/draw_text_qt.h
- ext/native/gfx_es2/draw_text_android.cpp
- ext/native/gfx_es2/draw_text_android.h
ext/jpge/jpgd.cpp
ext/jpge/jpgd.h
ext/jpge/jpge.cpp
diff --git a/Common/Common.vcxproj b/Common/Common.vcxproj
index cc8f5594d0..16ba97f6c2 100644
--- a/Common/Common.vcxproj
+++ b/Common/Common.vcxproj
@@ -431,6 +431,11 @@
+
+
+
+
+
@@ -753,6 +758,11 @@
+
+
+
+
+
diff --git a/Common/Common.vcxproj.filters b/Common/Common.vcxproj.filters
index d38ea71068..10c28d065c 100644
--- a/Common/Common.vcxproj.filters
+++ b/Common/Common.vcxproj.filters
@@ -357,6 +357,21 @@
GPU\Vulkan
+
+ Render\Text
+
+
+ Render\Text
+
+
+ Render\Text
+
+
+ Render\Text
+
+
+ Render\Text
+
@@ -692,6 +707,21 @@
GPU\Vulkan
+
+ Render\Text
+
+
+ Render\Text
+
+
+ Render\Text
+
+
+ Render\Text
+
+
+ Render\Text
+
@@ -790,6 +820,9 @@
{c9aba118-5c31-4607-9a69-18eca9f92b44}
+
+ {9da96cce-c74a-4669-b755-c95defbe1e93}
+
diff --git a/Common/Render/DrawBuffer.cpp b/Common/Render/DrawBuffer.cpp
index d0d2e42a87..f23c753726 100644
--- a/Common/Render/DrawBuffer.cpp
+++ b/Common/Render/DrawBuffer.cpp
@@ -7,7 +7,7 @@
#include "Common/Math/math_util.h"
#include "Common/Render/TextureAtlas.h"
#include "Common/Render/DrawBuffer.h"
-#include "gfx_es2/draw_text.h"
+#include "Common/Render/Text/draw_text.h"
#include "Common/Data/Encoding/Utf8.h"
#include "Common/Data/Text/WrapText.h"
diff --git a/ext/native/gfx_es2/draw_text.cpp b/Common/Render/Text/draw_text.cpp
similarity index 91%
rename from ext/native/gfx_es2/draw_text.cpp
rename to Common/Render/Text/draw_text.cpp
index b85e6eeb71..e236065483 100644
--- a/ext/native/gfx_es2/draw_text.cpp
+++ b/Common/Render/Text/draw_text.cpp
@@ -1,13 +1,16 @@
+#include "ppsspp_config.h"
+
#include "Common/System/Display.h"
#include "Common/GPU/thin3d.h"
#include "Common/Data/Hash/Hash.h"
#include "Common/Data/Text/WrapText.h"
#include "Common/Data/Encoding/Utf8.h"
-#include "gfx_es2/draw_text.h"
-#include "gfx_es2/draw_text_win.h"
-#include "gfx_es2/draw_text_uwp.h"
-#include "gfx_es2/draw_text_qt.h"
-#include "gfx_es2/draw_text_android.h"
+
+#include "Common/Render/Text/draw_text.h"
+#include "Common/Render/Text/draw_text_win.h"
+#include "Common/Render/Text/draw_text_uwp.h"
+#include "Common/Render/Text/draw_text_qt.h"
+#include "Common/Render/Text/draw_text_android.h"
TextDrawer::TextDrawer(Draw::DrawContext *draw) : draw_(draw) {
// These probably shouldn't be state.
diff --git a/ext/native/gfx_es2/draw_text.h b/Common/Render/Text/draw_text.h
similarity index 100%
rename from ext/native/gfx_es2/draw_text.h
rename to Common/Render/Text/draw_text.h
index 4d1862834d..252029b8a3 100644
--- a/ext/native/gfx_es2/draw_text.h
+++ b/Common/Render/Text/draw_text.h
@@ -13,8 +13,8 @@
#include
#include
-#include "Common/Render/DrawBuffer.h"
#include "Common/Data/Text/WrapText.h"
+#include "Common/Render/DrawBuffer.h"
namespace Draw {
class DrawContext;
diff --git a/ext/native/gfx_es2/draw_text_android.cpp b/Common/Render/Text/draw_text_android.cpp
similarity index 99%
rename from ext/native/gfx_es2/draw_text_android.cpp
rename to Common/Render/Text/draw_text_android.cpp
index 263494f78c..7e6a66d85f 100644
--- a/ext/native/gfx_es2/draw_text_android.cpp
+++ b/Common/Render/Text/draw_text_android.cpp
@@ -1,16 +1,15 @@
+#include "Common/Log.h"
+#include "Common/StringUtils.h"
#include "Common/System/Display.h"
#include "Common/GPU/thin3d.h"
#include "Common/Data/Hash/Hash.h"
#include "Common/Data/Text/WrapText.h"
#include "Common/Data/Encoding/Utf8.h"
-#include "gfx_es2/draw_text.h"
-#include "gfx_es2/draw_text_android.h"
+#include "Common/Render/Text/draw_text.h"
+#include "Common/Render/Text/draw_text_android.h"
#include "android/jni/app-android.h"
-#include "Common/Log.h"
-#include "Common/StringUtils.h"
-
#if PPSSPP_PLATFORM(ANDROID) && !defined(__LIBRETRO__)
#include
diff --git a/ext/native/gfx_es2/draw_text_android.h b/Common/Render/Text/draw_text_android.h
similarity index 97%
rename from ext/native/gfx_es2/draw_text_android.h
rename to Common/Render/Text/draw_text_android.h
index 51e5a3ab82..4b95bdeb75 100644
--- a/ext/native/gfx_es2/draw_text_android.h
+++ b/Common/Render/Text/draw_text_android.h
@@ -3,7 +3,7 @@
#include "ppsspp_config.h"
#include
@@ -347,6 +350,21 @@
GPU\GL
+
+ Render\Text
+
+
+ Render\Text
+
+
+ Render\Text
+
+
+ Render\Text
+
+
+ Render\Text
+
@@ -627,6 +645,21 @@
GPU\GL
+
+ Render\Text
+
+
+ Render\Text
+
+
+ Render\Text
+
+
+ Render\Text
+
+
+ Render\Text
+
diff --git a/UWP/NativeUWP/NativeUWP.vcxproj b/UWP/NativeUWP/NativeUWP.vcxproj
index ed65f21e62..fe5acb8cd9 100644
--- a/UWP/NativeUWP/NativeUWP.vcxproj
+++ b/UWP/NativeUWP/NativeUWP.vcxproj
@@ -379,14 +379,10 @@
-
-
-
-
Create
Create
diff --git a/UWP/NativeUWP/NativeUWP.vcxproj.filters b/UWP/NativeUWP/NativeUWP.vcxproj.filters
index b1fe9b4b87..abd4278e78 100644
--- a/UWP/NativeUWP/NativeUWP.vcxproj.filters
+++ b/UWP/NativeUWP/NativeUWP.vcxproj.filters
@@ -2,26 +2,9 @@
-
- gfx
-
-
- gfx
-
-
- gfx
-
-
- gfx
-
-
-
-
- {85815953-a0f8-409b-bbe9-c28f126ae7bf}
-
\ No newline at end of file
diff --git a/android/jni/Android.mk b/android/jni/Android.mk
index 08c1f87950..25632e73cd 100644
--- a/android/jni/Android.mk
+++ b/android/jni/Android.mk
@@ -104,16 +104,16 @@ endif
NATIVE_FILES :=\
$(SRC)/Common/Render/DrawBuffer.cpp \
$(SRC)/Common/Render/TextureAtlas.cpp \
+ $(SRC)/Common/GPU/OpenGL/gl3stub.c \
$(SRC)/Common/GPU/OpenGL/thin3d_gl.cpp \
$(SRC)/Common/GPU/OpenGL/GLDebugLog.cpp \
$(SRC)/Common/GPU/OpenGL/GLSLProgram.cpp \
- $(SRC)/Common/GPU/OpenGL/gl3stub.c \
$(SRC)/Common/GPU/OpenGL/GLFeatures.cpp \
$(SRC)/Common/GPU/OpenGL/GLRenderManager.cpp \
$(SRC)/Common/GPU/OpenGL/GLQueueRunner.cpp \
$(SRC)/Common/GPU/OpenGL/DataFormatGL.cpp \
- $(SRC)/ext/native/gfx_es2/draw_text.cpp.arm \
- $(SRC)/ext/native/gfx_es2/draw_text_android.cpp.arm
+ $(SRC)/Common/Render/Text/draw_text.cpp.arm \
+ $(SRC)/Common/Render/Text/draw_text_android.cpp.arm
EGL_FILES := \
$(SRC)/Common/GL/GLInterface/EGL.cpp \
diff --git a/ext/native/native.vcxproj b/ext/native/native.vcxproj
index a66ede425e..14fd640a74 100644
--- a/ext/native/native.vcxproj
+++ b/ext/native/native.vcxproj
@@ -362,20 +362,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ext/native/native.vcxproj.filters b/ext/native/native.vcxproj.filters
index b1773f1582..949fbbb1ef 100644
--- a/ext/native/native.vcxproj.filters
+++ b/ext/native/native.vcxproj.filters
@@ -6,43 +6,6 @@
-
- gfx
-
-
- gfx
-
-
- gfx
-
-
- gfx
-
-
- gfx
-
-
-
-
- gfx
-
-
- gfx
-
-
- gfx
-
-
- gfx
-
-
- gfx
-
-
-
-
- {9da89505-72a1-40e6-86e5-705372db1608}
-
{4515306f-4664-46bf-a89b-abfec5520a15}
diff --git a/libretro/Makefile.common b/libretro/Makefile.common
index ddd0b58db1..6f8ffebe6c 100644
--- a/libretro/Makefile.common
+++ b/libretro/Makefile.common
@@ -326,21 +326,21 @@ SOURCES_CXX += \
ifeq ($(PLATFORM_EXT), win32)
SOURCES_CXX += $(COMMONDIR)/MemArenaWin32.cpp \
$(EXTDIR)/glslang/glslang/OSDependent/Windows/ossource.cpp \
- $(NATIVEDIR)/gfx_es2/draw_text_win.cpp
+ $(COMMONDIR)/Render/Text/draw_text_win.cpp
else ifeq ($(PLATFORM_EXT), darwin)
SOURCES_CXX += $(COMMONDIR)/MemArenaDarwin.cpp \
$(EXTDIR)/glslang/glslang/OSDependent/Unix/ossource.cpp
else ifeq ($(PLATFORM_EXT), android)
SOURCES_CXX += $(COMMONDIR)/MemArenaAndroid.cpp \
$(EXTDIR)/glslang/glslang/OSDependent/Unix/ossource.cpp \
- $(NATIVEDIR)/gfx_es2/draw_text_android.cpp
+ $(COMMONDIR)/Render/Text/draw_text_android.cpp
else
SOURCES_CXX += $(COMMONDIR)/MemArenaPosix.cpp \
$(EXTDIR)/glslang/glslang/OSDependent/Unix/ossource.cpp
endif
SOURCES_CXX += \
- $(NATIVEDIR)/gfx_es2/draw_text.cpp \
+ $(COMMONDIR)/Render/Text/draw_text.cpp \
$(EXTDIR)/jpge/jpgd.cpp \
$(EXTDIR)/jpge/jpge.cpp \
$(COREDIR)/AVIDump.cpp \