Browse Source

libobs-opengl: Fix sampler not being assigned to texture

jp9000 9 năm trước cách đây
mục cha
commit
9a22ebdc71
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      libobs-opengl/gl-subsystem.c

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

@@ -471,7 +471,7 @@ void device_load_texture(gs_device_t *device, gs_texture_t *tex, int unit)
 		return;
 		return;
 
 
 	// texelFetch doesn't need a sampler
 	// texelFetch doesn't need a sampler
-	if (param->sampler_id == -1)
+	if (param->sampler_id != (size_t)-1)
 		sampler = device->cur_samplers[param->sampler_id];
 		sampler = device->cur_samplers[param->sampler_id];
 	else
 	else
 		sampler = NULL;
 		sampler = NULL;