diff --git a/src/Drawer2D.c b/src/Drawer2D.c index 66624d403..b3e4b738e 100644 --- a/src/Drawer2D.c +++ b/src/Drawer2D.c @@ -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) { - 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->Y = Y; tex->Height = used.Height; diff --git a/src/Graphics.h b/src/Graphics.h index 08d6d0e92..020f53773 100644 --- a/src/Graphics.h +++ b/src/Graphics.h @@ -11,12 +11,6 @@ */ 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_ { VERTEX_FORMAT_P3FC4B, VERTEX_FORMAT_P3FT2FC4B } VertexFormat; diff --git a/src/Window.c b/src/Window.c index 94dfd771f..9809be764 100644 --- a/src/Window.c +++ b/src/Window.c @@ -2858,6 +2858,7 @@ void Window_Create(int x, int y, int width, int height, struct GraphicsMode* mod void Window_SetTitle(const String* title) { /* TODO: Implement this somehow */ + /* Maybe https://stackoverflow.com/questions/2198410/how-to-change-title-of-activity-in-android */ } void Clipboard_GetText(String* value) {