Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some cleanups for OGL/Vertexmanager.cpp #191

Merged
merged 2 commits into from Mar 18, 2014

Conversation

jezze
Copy link
Contributor

@jezze jezze commented Mar 18, 2014

Although it is always scary to modify behavior around global variables I think 46b7cfe should be safe.

@@ -166,8 +158,7 @@ void VertexManager::vFlush(bool useDstAlpha)
ProgramShaderCache::UploadConstants();

// setup the pointers
if (g_nativeVertexFmt)

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@neobrain
Copy link
Member

Please put "OGL/VertexManager: " in front of the commit messages so that people glancing over the commit log know what's going on without having to lookup the full patch changes.

@jezze
Copy link
Contributor Author

jezze commented Mar 18, 2014

I could add an

if (!g_nativeVertexFmt)
    return;

in the beginning but considering how long this has worked I guess it never becomes zero.

neobrain added a commit that referenced this pull request Mar 18, 2014
Some cleanups for OGL/Vertexmanager.cpp
@neobrain neobrain merged commit 51fdf8a into dolphin-emu:master Mar 18, 2014
@neobrain
Copy link
Member

By the way, please use a more sensible branch name in the future, since the branch name appears in the merge commit message and I can't change it upon merging.

The variable is already dereferenced both before and after this
check which means that if this variable would ever be zero it would
have crashed dolphin already.
@jezze jezze deleted the for-dolphin branch March 26, 2014 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants