Skip to content

Commit

Permalink
OpenGL -> OpenGL_non_windows_non_darwin, since EGL targets neither
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli committed Mar 20, 2024
1 parent 3e49973 commit b178313
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef INFOWARE_USE_D3D
#ifndef INFOWARE_USE_OPENCL
#ifndef _WIN32
#ifndef __APPLE__
#ifdef INFOWARE_USE_OPENGL

Expand Down Expand Up @@ -98,3 +99,4 @@ std::vector<iware::gpu::device_properties_t> iware::gpu::device_properties() {
#endif
#endif
#endif
#endif
22 changes: 22 additions & 0 deletions src/gpu/OpenGL_windows.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// SPDX-License-Identifier: CC0-1.0
// infoware - C++ System information Library


#ifndef INFOWARE_USE_D3D
#ifndef INFOWARE_USE_OPENCL
#ifdef _WIN32
#ifdef INFOWARE_USE_OPENGL

#include "infoware/gpu.hpp"


std::vector<iware::gpu::device_properties_t> iware::gpu::device_properties() {
#warning No OpenGL Win32 implementation
return {};
}


#endif
#endif
#endif
#endif

0 comments on commit b178313

Please sign in to comment.