瀏覽代碼

Change a reference variable to be volatile long

Removed some warnings associated with it, was the wrong variable type.
jp9000 11 年之前
父節點
當前提交
2b4e381c3b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libobs-opengl/gl-subsystem.h

+ 1 - 1
libobs-opengl/gl-subsystem.h

@@ -274,7 +274,7 @@ extern void convert_sampler_info(struct gs_sampler_state *sampler,
 
 
 struct gs_sampler_state {
 struct gs_sampler_state {
 	device_t             device;
 	device_t             device;
-	volatile uint32_t    ref;
+	volatile long        ref;
 
 
 	GLint                min_filter;
 	GLint                min_filter;
 	GLint                mag_filter;
 	GLint                mag_filter;