17 Commits

Author SHA1 Message Date
Martin Piatka
8f9828e7d8 GUI/preview: Output alpha channel in fragment shader
Outputing only a vec3 caused weird transparency issues on wayland
2024-04-10 12:50:18 +02:00
Martin Pulec
d53db9d75a set MAX_PATH_SIZE to MAX_PATH+1 in Windows
Actually the value MAX_PATH doesn't contain terminating NULL byte
according to the MSDN documentation for GetTempPathA. Perhaps not
a big deal but since the MAX_PATH_SIZE is generic, it is nicer to
have it correct.
2024-04-08 14:27:58 +02:00
Martin Pulec
5b65bfea34 gui/.../previewWidget.cpp: include windows.h [Win]
windows.h is required for GetTempPathA and MAX_PATH
2024-04-08 14:27:54 +02:00
Martin Pulec
41273b39da removed GUI dependency on fs.cpp
Now it would transitively depend on at least utils/{color_out,text},
which is perhaps not worth including.
2023-01-17 14:25:09 +01:00
Martin Piatka
0a5657685c GUI: Use get_temp_dir() for preview 2022-09-13 13:54:24 +02:00
Martin Piatka
80a2540c8b GUI: previewWidget: take key as string_view 2022-08-16 10:31:50 +02:00
Martin Piatka
d201d382c3 GUI/preview: Fix loading non multiple of 4 width textures 2022-06-24 13:40:24 +02:00
Martin Piatka
e835a6b983 GUI/preview: Add "debug.hpp" include to satisfy assert 2022-06-24 13:40:24 +02:00
Martin Piatka
ca620bc6cc GUI: switch to unix socket based preview 2022-06-24 13:40:24 +02:00
Martin Piatka
1749ad4398 GUI: preview: don't needlessly repeat gl calls
*setting attrib ptrs needs to be done only once
*don't update the texture on every draw
2022-05-31 14:19:50 +02:00
Martin Piatka
dd37b3f1ee GUI/preview: Split frame loading into a function 2022-05-31 14:16:27 +02:00
Martin Piatka
597cd2bb8c GUI: preview: make gl context current before getting funcs 2022-05-31 14:16:27 +02:00
Martin Piatka
2f63651d6f GUI/preview: Properly free gl objects, fix coverity uninit warn 2022-03-24 14:38:34 +01:00
Martin Piatka
4badf76d92 GUI: Fix direct OpenGL calls 2022-03-09 14:56:43 +01:00
Martin Pulec
dcbfdf3e82 Basic Qt6 compat 2021-04-08 13:57:45 +02:00
Martin Piatka
43a6afd719 GUI: Fix Coverity issues 2019-11-18 12:11:16 +01:00
Martin Piatka
a758158597 GUI: Restructuralize into directories 2019-03-04 13:44:49 +01:00