Skip to content

Commit

Permalink
Fix macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerboa-app committed Aug 6, 2024
1 parent 1cba496 commit 23d9c85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/jGL/OpenGL/Texture/glTexture.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace jGL::GL
glDeleteTextures(1, &id);
}

virtual void upload(unsigned char * data) {};
virtual void upload(std::vector<std::byte> * data) {};

inline void bind() { glBindTexture(GL_TEXTURE_2D, id); }

Expand Down
2 changes: 2 additions & 0 deletions include/logo.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
logo.h (PNM).
*/

#include <array>

template<typename... Ts>
std::array<std::byte, sizeof...(Ts)> make_bytes(Ts&&... args) noexcept {
return{std::byte(std::forward<Ts>(args))...};
Expand Down

0 comments on commit 23d9c85

Please sign in to comment.