From ec86c3eaf70ee67d275b272a00b0fe8b0042cc5a Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 4 Oct 2013 09:01:39 -0700 Subject: [PATCH] fixed code that used the newer gs_create_texture version --- libobs/graphics/texture-render.c | 2 +- test/test-input/test-random.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libobs/graphics/texture-render.c b/libobs/graphics/texture-render.c index 63450bced..00783af4e 100644 --- a/libobs/graphics/texture-render.c +++ b/libobs/graphics/texture-render.c @@ -68,7 +68,7 @@ static bool texrender_resetbuffer(texrender_t texrender, int cx, int cy) texrender->cy = cy; texrender->target = gs_create_texture(cx, cy, texrender->format, - NULL, GS_RENDERTARGET); + 1, NULL, GS_RENDERTARGET); if (!texrender->target) return false; diff --git a/test/test-input/test-random.c b/test/test-input/test-random.c index 30eade111..e60b7bb03 100644 --- a/test/test-input/test-random.c +++ b/test/test-input/test-random.c @@ -19,7 +19,7 @@ struct random_tex *random_create(const char *settings, source_t source) } } - rt->texture = gs_create_texture(20, 20, GS_RGBA, pixels, 0); + rt->texture = gs_create_texture(20, 20, GS_RGBA, 1, &pixels, 0); bfree(pixels); if (!rt->texture) {