mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 20:19:20 +02:00
put every include before every import
A header first pulled in through an imported module's global module fragment leaves no include guard in the importing unit - macros do not cross a module boundary - so a later textual include parses it again and MSVC rejects the redefinition. Redoes the betterRenderer sweep with placement that stays out of #if blocks, which is where the previous one dropped <fstream> and broke nvrenderer_d3d12.cpp.
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
#include "nvrendererbackend.h"
|
||||
#include "ssao.h"
|
||||
#include "config.h"
|
||||
import eu07.glm;
|
||||
#include <cstdint>
|
||||
|
||||
import eu07.glm;
|
||||
void GbufferLighting::Init() {
|
||||
auto fb_info = m_renderer->m_gbuffer->m_framebuffer->getFramebufferInfo();
|
||||
m_width = fb_info.width;
|
||||
|
||||
Reference in New Issue
Block a user