office-gobmx/vcl/opengl
Luboš Luňák 29dc1029be differentiate between 8bit and any-bit grey palette (tdf#121120)
Only the grey palette with 256 colors means that pixel values map
directly to color values. Tdf#121120 has an image with 2-bit
palette where color index 1 is (255,255,255), but that means
the pixel value 1 cannot be just treated as color.

Change-Id: Ifbd953af7f291e4fb8032ea0f4c33c0514770856
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97283
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-06-30 08:02:45 +02:00
..
shaders
win
x11
DeviceInfo.cxx
FixedTextureAtlas.cxx
framebuffer.cxx
gdiimpl.cxx
LineRenderUtils.cxx
opengl_blacklist_windows.xml
PackedTextureAtlas.cxx
program.cxx
README.deprecated
README.opengl
RenderList.cxx
salbmp.cxx
scale.cxx
texture.cxx

Run LO with OpenGL enabled
--------------------------
SAL_USE_VCLPLUGIN=gen SAL_FORCEGL=1 ./soffice

Environment variables used:

SAL_USE_VCLPLUGIN - use the specified VCL plugin (GTK2 in this case - currently
needed on Linux because the default GTK3 doesn't support OpenGL yet)

SAL_FORCEGL - enable OpenGL even if the card is blacklisted.

Other variables:

LIBGL_ALWAYS_SOFTWARE=1 - on Linux+Mesa forces the software renderer to be used
(this is useful as an alternative to spot driver specific bugs)

SAL_LOG=+INFO.vcl.opengl - if "--enable-dbgutil" is used, this can show OpenGL
various rendering messages.

LD_PRELOAD=/usr/lib64/apitrace/wrappers/glxtrace.so - preload the wrapper for
APItrace. The path is the default used in Fedora 21+.

Run VCLDemo
-----------

SAL_USE_VCLPLUGIN=gen SAL_FORCEGL=1 ./bin/run vcldemo