diff --git a/.gitignore b/.gitignore index 4a10880..a514c9f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ .vs out -*.json build +*.json diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 51a1fd9..0186a61 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -28,8 +28,10 @@ target_include_directories(example PRIVATE target_link_libraries(example glfw + GL + ${CMAKE_DL_LIBS} ) add_custom_command(TARGET example POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/assets $/assets -) \ No newline at end of file +) diff --git a/src/objects/Shader.cpp b/src/objects/Shader.cpp index cd3038a..15ea34f 100644 --- a/src/objects/Shader.cpp +++ b/src/objects/Shader.cpp @@ -2,6 +2,7 @@ #include #include +#include #include @@ -28,7 +29,7 @@ void Shader::LoadShaderSource(const char* filepath, char** buffer) return; } - memcpy_s(*buffer, size, source.c_str(), size); + memcpy(*buffer, source.c_str(), size); (*buffer)[size] = '\0'; }