0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

libobs: Fix invalid max_anisotropy value

max_anisotropy is initialized to zero, but the minimum value is 1.
This commit is contained in:
James Park 2019-03-19 01:26:28 -07:00
parent e67cae3710
commit cb67192077
2 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,8 @@ void shader_sampler_convert(struct shader_sampler *ss,
size_t i;
memset(info, 0, sizeof(struct gs_sampler_info));
info->max_anisotropy = 1;
for (i = 0; i < ss->states.num; i++) {
const char *state = ss->states.array[i];
const char *value = ss->values.array[i];

View File

@ -344,6 +344,7 @@ static int obs_init_graphics(struct obs_video_info *ovi)
NULL);
bfree(filename);
point_sampler.max_anisotropy = 1;
video->point_sampler = gs_samplerstate_create(&point_sampler);
obs->video.transparent_texture = gs_texture_create(2, 2, GS_RGBA, 1,