Quick workaround for #594, a real fix will come later. (Thanks igor725)

This commit is contained in:
UnknownShadow200 2019-07-20 11:10:32 +10:00
parent 65ac893238
commit 8fb63080c8
3 changed files with 4 additions and 7 deletions

View File

@ -312,7 +312,9 @@ void Drawer2D_MakeTextTexture(struct Texture* tex, struct DrawTextArgs* args, in
} }
void Drawer2D_Make2DTexture(struct Texture* tex, Bitmap* bmp, Size2D used, int X, int Y) { void Drawer2D_Make2DTexture(struct Texture* tex, Bitmap* bmp, Size2D used, int X, int Y) {
tex->ID = Gfx_CreateTexture(bmp, false, false); tex->ID = GFX_NULL;
if (!Gfx.LostContext) tex->ID = Gfx_CreateTexture(bmp, false, false);
tex->X = X; tex->Width = used.Width; tex->X = X; tex->Width = used.Width;
tex->Y = Y; tex->Height = used.Height; tex->Y = Y; tex->Height = used.Height;

View File

@ -11,12 +11,6 @@
*/ */
struct Stream; struct Stream;
typedef enum CompareFunc_ {
COMPARE_FUNC_ALWAYS, COMPARE_FUNC_NOTEQUAL, COMPARE_FUNC_NEVER,
COMPARE_FUNC_LESS, COMPARE_FUNC_LESSEQUAL, COMPARE_FUNC_EQUAL,
COMPARE_FUNC_GREATEREQUAL, COMPARE_FUNC_GREATER
} CompareFunc;
typedef enum VertexFormat_ { typedef enum VertexFormat_ {
VERTEX_FORMAT_P3FC4B, VERTEX_FORMAT_P3FT2FC4B VERTEX_FORMAT_P3FC4B, VERTEX_FORMAT_P3FT2FC4B
} VertexFormat; } VertexFormat;

View File

@ -2858,6 +2858,7 @@ void Window_Create(int x, int y, int width, int height, struct GraphicsMode* mod
void Window_SetTitle(const String* title) { void Window_SetTitle(const String* title) {
/* TODO: Implement this somehow */ /* TODO: Implement this somehow */
/* Maybe https://stackoverflow.com/questions/2198410/how-to-change-title-of-activity-in-android */
} }
void Clipboard_GetText(String* value) { void Clipboard_GetText(String* value) {