diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-08-21 21:57:31 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-08-21 21:57:31 +0200 |
commit | 7a80f0de04c3b07d88ba2ab3e51544d38fe924f6 (patch) | |
tree | 4e67621a944e3686ba724fa953a52eddc8610fe7 /include | |
parent | ffb6d86c557b2327b2a6363c0d805d717695dce4 (diff) |
Attempt to fix vertex draw when using texcoords without a texture (such as when using a shader)
Diffstat (limited to 'include')
-rw-r--r-- | include/mgl/graphics/texture.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mgl/graphics/texture.h b/include/mgl/graphics/texture.h index 61ac273..387a977 100644 --- a/include/mgl/graphics/texture.h +++ b/include/mgl/graphics/texture.h @@ -41,6 +41,7 @@ int mgl_texture_update(mgl_texture *self, const unsigned char *data, int offset_ int mgl_texture_resize(mgl_texture *self, int new_width, int new_height, mgl_texture_load_options *load_options); /* If |texture| is NULL then no texture is used */ void mgl_texture_use(const mgl_texture *texture); +const mgl_texture* mgl_texture_current_texture(void); void mgl_texture_unload(mgl_texture *self); #endif /* MGL_TEXTURE_H */ |