lightpreview: render Q1 faces with missing textures
This commit is contained in:
parent
f9a9733068
commit
248ed7c614
|
|
@ -1060,9 +1060,6 @@ void GLView::renderBSP(const QString &file, const mbsp_t &bsp, const bspxentries
|
||||||
for (int i = m.firstface; i < m.firstface + m.numfaces; ++i) {
|
for (int i = m.firstface; i < m.firstface + m.numfaces; ++i) {
|
||||||
auto &f = bsp.dfaces[i];
|
auto &f = bsp.dfaces[i];
|
||||||
std::string t = Face_TextureName(&bsp, &f);
|
std::string t = Face_TextureName(&bsp, &f);
|
||||||
// FIXME: keep empty texture names?
|
|
||||||
if (t.empty())
|
|
||||||
continue;
|
|
||||||
if (f.numedges < 3)
|
if (f.numedges < 3)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue