vo_opengl: change default FBO format

GL_RGB16 doesn't seem to work universally (e.g. Intel). Use GL_RGB by
default, and use GL_RGB16 for "opengl-hq" only.

This may require users of Intel GPUs to manually experiment with the
fbo-format suboption when using "opengl-hq", as GL_RGB16 doesn't seem to
work there in some cases (black screen).
This commit is contained in:
wm4 2012-09-30 12:12:01 +02:00
parent 5d60ac11b5
commit 703e02a6ee
2 changed files with 3 additions and 3 deletions

View File

@ -410,7 +410,7 @@ opengl
fbo-format=<fmt>
Selects the internal format of any FBO textures used.
fmt can be one of: rgb, rgba, rgb8, rgb10, rgb16, rgb16f, rgb32f
Default: rgb16.
Default: rgb.
gamma
Always enable gamma control. (Disables delayed enabling.)
@ -446,7 +446,7 @@ opengl-hq
This is equivalent to:
| --vo=opengl:lscale=lanczos2:fancy-downscaling:dither-depth=0:pbo
| --vo=opengl:lscale=lanczos2:fancy-downscaling:dither-depth=0:pbo:fbo-format=rgb16
Note that some cheaper LCDs do dithering that gravely interferes with
vo_opengl's dithering. Disabling dithering with ``dither-depth=-1`` helps.

View File

@ -2333,7 +2333,7 @@ static int preinit(struct vo *vo, const char *arg)
.swap_interval = vo_vsync,
.osd_color = 0xffffff,
.dither_depth = hq ? 0 : -1,
.fbo_format = GL_RGB16,
.fbo_format = hq ? GL_RGB16 : GL_RGB,
.use_scale_sep = 1,
.use_fancy_downscaling = hq,
.scalers = {