mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 15:11:09 +08:00
vo_opengl: fix broken rejection of extended scaling
Possibly explains why some users got mysterious FBO errors on crappy hardware.
This commit is contained in:
committed by
Diogo Franco (Kovensky)
parent
7368d8f353
commit
676457256a
@@ -2079,9 +2079,8 @@ static void check_gl_features(struct gl_video *p)
|
||||
// Without FP textures, we must always disable them.
|
||||
if (!have_float_tex || (!have_fbo && p->opts.scale_sep)) {
|
||||
for (int n = 0; n < 2; n++) {
|
||||
struct scaler *scaler = &p->scalers[n];
|
||||
if (mp_find_filter_kernel(scaler->name)) {
|
||||
scaler->name = "bilinear";
|
||||
if (mp_find_filter_kernel(p->opts.scalers[n])) {
|
||||
p->opts.scalers[n] = "bilinear";
|
||||
disabled[n_disabled++]
|
||||
= have_float_tex ? "scaler (FBO)" : "scaler (float tex.)";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user