-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix issue #2056 . Check for NaN uniforms #2058
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
Conversation
|
Note regarding the protected void isValidNumber(float v) methods. ...because they are protected it is harder for Java to inline them but even if asserts are turned off they will be called. Either way, I wonder if it would be better if isValidNumber() simply returned true/false and then the calls are replaced with asserts... then when asserts are turned off no extra calls are made. Else, isValidNumber() should be renamed because "is" implies a boolean return. |
|
I've updated the pr accordingly to your suggestions. |
|
My understanding is that if assertions are disabled then the entire part after "assert" is removed... including the string concatenation. |
|
...and by the way, I think this kind of instrumenting is really great for those "special times" when it's necessary. |
|
I added the values to the assert messages |
|
If there aren't objections i will merge this |
|
Hi @riccardobl, please take a look at my revision before merging the code, there are code formatting errors, extra lines and double semicolons at the end of the instructions. Could you please correct them? |
Mhh i don't see your revision anywhere, but i think i've fixed the issues you pointed out, see the last commit |
|
Looks like he forgot to "submit" the reviews, so they won't be displayed to the public. |
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
Outdated
Show resolved
Hide resolved
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
Outdated
Show resolved
Hide resolved
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
Outdated
Show resolved
Hide resolved
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
Outdated
Show resolved
Hide resolved
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
Outdated
Show resolved
Hide resolved
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
Outdated
Show resolved
Hide resolved
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
Outdated
Show resolved
Hide resolved
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
Outdated
Show resolved
Hide resolved
@Ali-RS Correct, I have submitted the reviews which should now be visible. |
|
Done |
No description provided.