Made the renderer modular and loadable

This removes coupling between the renderer and UI/client functions. An option USE_RENDERER_DLOPEN was added to specify whether a renderer module should be compiled and loaded, instead of integrating the renderer into the executable directly. This opens the door for a new renderer
This commit is contained in:
smallmodel committed 2024-12-06 00:15:19 +01:00
1 parent 35f40e949b
commit 28bdd1b2b3
31 files changed
+645 -217

No files matched your search

+2 -2
View File
@@ -335,8 +335,8 @@ void R_VisDebug()
LoadPortals(buffer);
}
leafnum = CM_PointLeafnum(tr.refdef.vieworg);
cluster = CM_LeafCluster(leafnum);
leafnum = ri.CM_PointLeafnum(tr.refdef.vieworg);
cluster = ri.CM_LeafCluster(leafnum);
if (cluster < 0) {
return;
}