Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
Replace string constructor with assigment operator (#57)
Browse files Browse the repository at this point in the history
* avoid null constructor for string constructed from empty
  glGetString(GL_EXTENSIONS)
* bump version v0.3.9
  • Loading branch information
headupinclouds authored Apr 9, 2019
1 parent e9457be commit 9cf1352
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ HunterGate(
LOCAL
)

project(ogles_gpgpu VERSION 0.3.8)
project(ogles_gpgpu VERSION 0.3.9)

# !!! Make sure option OGLES_GPGPU_OPENG_ES3 occurs prior to the first
# hunter_add_package() call. This will allow us to modify settings
Expand Down
3 changes: 2 additions & 1 deletion ogles_gpgpu/common/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,9 @@ void Core::getOutputData(unsigned char* buf) {
#pragma mark helper methods

void Core::checkGLExtensions() {

// get string with extensions seperated by a SPACE
string glExtString((const char*)glGetString(GL_EXTENSIONS));
std::string glExtString = reinterpret_cast<const char *>(glGetString(GL_EXTENSIONS));

// get extensions as vector
vector<string> glExt = Tools::split(glExtString);
Expand Down

0 comments on commit 9cf1352

Please sign in to comment.