summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-18 16:31:40 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-18 16:31:40 (EDT)
commit24468c113cb7a3fd2ed6089793e25015ea7c7c39 (patch)
treedab8803e6871813c7474e8f514d640f50f0a594e /src/main.c
parentfeee60fa34b5442f10d306be8aaaf52563f88648 (diff)
downloaddodge-balls-24468c113cb7a3fd2ed6089793e25015ea7c7c39.zip
dodge-balls-24468c113cb7a3fd2ed6089793e25015ea7c7c39.tar.gz
dodge-balls-24468c113cb7a3fd2ed6089793e25015ea7c7c39.tar.bz2
main: Make texture static
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 8d58351..c6da24a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -82,7 +82,7 @@ _db_init(void)
}
_db_texture = SDL_CreateTexture(_db_renderer, SDL_PIXELFORMAT_ARGB8888,
- SDL_TEXTUREACCESS_TARGET, 640, 480);
+ SDL_TEXTUREACCESS_STATIC, 640, 480);
if (_db_texture == NULL) {
db_err("Failed to create texture (%s)", SDL_GetError());
SDL_DestroyRenderer(_db_renderer);