Skip to content

Commit

Permalink
IGL: OpenGL Tidy Up
Browse files Browse the repository at this point in the history
Reviewed By: nlutsenko, rameshviswanathan

Differential Revision: D68648521

fbshipit-source-id: fad82771271a1e07257861309a822ae41f99b978
  • Loading branch information
Eric Griffith authored and facebook-github-bot committed Jan 26, 2025
1 parent e03e9bd commit 4dc9529
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/igl/opengl/glx/Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

namespace {

int GetLastError() {
[[maybe_unused]] int GetLastError() {
return 0; // TODO: implement error handling
}

Expand Down Expand Up @@ -148,8 +148,6 @@ Context::Context(std::shared_ptr<GLXSharedModule> module,
static int visualAttribs[] = {None};
int contextAttribs[] = {GLX_CONTEXT_MAJOR_VERSION_ARB, 4, GLX_CONTEXT_MINOR_VERSION_ARB, 6, None};

GLXPbuffer pbuf;

if (display_ = module_->XOpenDisplay(0); display_ != nullptr) {
int fbcount = 0;
if (GLXFBConfig* fbc = module_->glXChooseFBConfig(
Expand Down
4 changes: 3 additions & 1 deletion src/igl/opengl/wgl/Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@

#include <igl/opengl/Texture.h>

#if !defined(WIN32_LEAN_AND_MEAN)
#define WIN32_LEAN_AND_MEAN
#endif
#if !defined(NOMINMAX)
#define NOMINMAX
#endif // NOMINMAX
#endif // !defined(NOMINMAX)
#include <windows.h>
#ifdef DISABLE_WGL_VSYNC
#include <GL/wglext.h>
Expand Down

0 comments on commit 4dc9529

Please sign in to comment.