Skip to content

Commit

Permalink
Don't double-allocate OpenGL vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli committed Mar 20, 2024
1 parent 8543b0e commit c15bd1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpu/OpenGL_non_windows_non_darwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ std::vector<iware::gpu::device_properties_t> iware::gpu::device_properties() {
iware::detail::quickscope_wrapper context_restorer{[&]() { eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); }};


std::string vendor = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
auto vendor = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
std::string renderer = reinterpret_cast<const char*>(glGetString(GL_RENDERER));

iware::gpu::vendor_t vendor_type = vendor_from_name(vendor);
Expand Down

0 comments on commit c15bd1c

Please sign in to comment.