Browse Source

fixed code that used the newer gs_create_texture version

jp9000 12 years ago
parent
commit
ec86c3eaf7
2 changed files with 2 additions and 2 deletions
  1. 1 1
      libobs/graphics/texture-render.c
  2. 1 1
      test/test-input/test-random.c

+ 1 - 1
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;
 

+ 1 - 1
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) {