libobs-opengl: Fix sampler not being assigned to texture

This commit is contained in:
jp9000 2016-03-22 12:01:35 -07:00
parent c82771e594
commit 9a22ebdc71

View File

@ -471,7 +471,7 @@ void device_load_texture(gs_device_t *device, gs_texture_t *tex, int unit)
return;
// 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];
else
sampler = NULL;