浏览代码

restore pre-c99-compatibility

Palana 12 年之前
父节点
当前提交
f23bf6b83c
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      libobs-opengl/gl-subsystem.c

+ 3 - 1
libobs-opengl/gl-subsystem.c

@@ -203,6 +203,8 @@ static void strip_mipmap_filter(GLint *filter)
 static bool load_texture_sampler(texture_t tex, samplerstate_t ss)
 {
 	bool success = true;
+	GLint min_filter;
+
 	if (tex->cur_sampler == ss)
 		return true;
 
@@ -214,7 +216,7 @@ static bool load_texture_sampler(texture_t tex, samplerstate_t ss)
 
 	samplerstate_addref(ss);
 
-	GLint min_filter = ss->min_filter;
+	min_filter = ss->min_filter;
 	if (texture_isrect(tex))
 		strip_mipmap_filter(&min_filter);