Merge pull request #1761 from jpark37/gl-fixes

libobs: Fix invalid max_anisotropy value
This commit is contained in:
Jim 2019-03-26 14:14:06 -07:00 committed by GitHub
commit 7066055cf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -532,7 +532,7 @@ void device_enter_context(gs_device_t *device)
hdc = device->cur_swap->wi->hdc;
if (!wgl_make_current(hdc, device->plat->hrc))
blog(LOG_ERROR, "device_load_swapchain (GL) failed");
blog(LOG_ERROR, "device_enter_context (GL) failed");
}
void device_leave_context(gs_device_t *device)

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,