Skip to content

Commit

Permalink
Use CUDA device API.
Browse files Browse the repository at this point in the history
  • Loading branch information
0mdc committed Nov 18, 2024
1 parent 03ef073 commit 5df7258
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/esp/gfx/WindowlessContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ struct WindowlessContext::Impl {
#if defined(CORRADE_TARGET_UNIX) && !defined(CORRADE_TARGET_APPLE)
#ifdef MAGNUM_TARGET_EGL
if (device != -1) {
#ifdef ESP_BUILD_WITH_CUDA
config.setCudaDevice(device);
#else
config.setDevice(device);
#endif
config.setCudaDevice(device);
}
#else // NO MAGNUM_TARGET_EGL
if (device != 0)
Expand Down

0 comments on commit 5df7258

Please sign in to comment.