ericw-tools/lightpreview
Josh Dowell 04044dd76d
lightpreview: fix texture mips not being generated (#385)
This was happening because allocateStorage allocates space for the texture and its mips up-front, the user of QOpenGLTexture is required
to determine the number of mips required for a texture beforehand.
allocateStorage was allocating space for mip 0 and no others, leading to no additional mips being generated.

This also adds explicit format and type to allocateStorage for only this instance, although it still remains optional.
2023-09-13 23:18:51 -06:00
..
CMakeLists.txt build: lightpreview is enabled by default 2023-09-09 16:24:56 -06:00
glview.cpp lightpreview: fix texture mips not being generated (#385) 2023-09-13 23:18:51 -06:00
glview.h lightpreview: add "Draw Translucency as Opaque" checkbox 2023-08-27 14:58:08 -06:00
main.cpp lightpreview: set dark theme 2023-08-28 21:34:22 -06:00
mainwindow.cpp lightpreview: fix loading a .bsp failing if there were light options set in the ui 2023-09-09 16:50:05 -06:00
mainwindow.h lightpreview: add .lit loading 2023-09-03 11:31:41 -06:00