From 9ae145358f1893d21b102630c4c5957c3ec1b8f0 Mon Sep 17 00:00:00 2001 From: Kevin Caccamo Date: Tue, 25 Jan 2022 10:19:17 -0500 Subject: [PATCH] Fix GCC compilation errors --- src/lightmap/gpuraytracer.cpp | 1 + src/lightmap/lightmaptexture.h | 1 + src/lightmap/pngwriter.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lightmap/gpuraytracer.cpp b/src/lightmap/gpuraytracer.cpp index eea25b5..997a016 100644 --- a/src/lightmap/gpuraytracer.cpp +++ b/src/lightmap/gpuraytracer.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include "glsl_rgen_bounce.h" #include "glsl_rgen_light.h" #include "glsl_rgen_ambient.h" diff --git a/src/lightmap/lightmaptexture.h b/src/lightmap/lightmaptexture.h index 52ccfc5..1899ffb 100644 --- a/src/lightmap/lightmaptexture.h +++ b/src/lightmap/lightmaptexture.h @@ -1,6 +1,7 @@ #pragma once +#include #include class LightmapTexture diff --git a/src/lightmap/pngwriter.h b/src/lightmap/pngwriter.h index 36c4fe9..681b0f2 100644 --- a/src/lightmap/pngwriter.h +++ b/src/lightmap/pngwriter.h @@ -13,7 +13,7 @@ public: DataBuffer(int size) : size(size) { data = new uint8_t[size]; } ~DataBuffer() { delete[] data; } int size; - void* data; + uint8_t* data; }; private: