Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Jan 12, 2025
1 parent 0308371 commit 52558b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
7 changes: 0 additions & 7 deletions library/lib/platforms/glfw/glfw_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@
#include <GLFW/glfw3.h>
#include <strings.h>

#ifdef __PSV__
extern "C"
{
unsigned int sceLibcHeapSize = 64 * 1024 * 1024;
};
#endif

// glfw video and input code inspired from the glfw hybrid app by fincs
// https://github.com/fincs/hybrid_app

Expand Down
6 changes: 0 additions & 6 deletions library/lib/platforms/glfw/glfw_video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@

// nanovg implementation
#ifdef BOREALIS_USE_OPENGL
#ifdef __PSV__
#define NANOVG_GLES2_IMPLEMENTATION
#else
#include <glad/glad.h>
#ifdef USE_GL2
#define NANOVG_GL2_IMPLEMENTATION
Expand All @@ -33,7 +30,6 @@
#else
#define NANOVG_GL3_IMPLEMENTATION
#endif /* USE_GL2 */
#endif /* __PSV__ */
#include <nanovg_gl.h>
#elif defined(BOREALIS_USE_METAL)
static void* METAL_CONTEXT = nullptr;
Expand Down Expand Up @@ -333,10 +329,8 @@ GLFWVideoContext::GLFWVideoContext(const std::string& windowTitle, uint32_t wind

#ifdef BOREALIS_USE_OPENGL
glfwMakeContextCurrent(window);
#ifndef __PSV__
// Load OpenGL routines using glad
gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
#endif
glfwSwapInterval(1);

Logger::info("glfw: GL Vendor: {}", (const char*)glGetString(GL_VENDOR));
Expand Down

0 comments on commit 52558b3

Please sign in to comment.