Skip to content

Commit

Permalink
Minor typos + make verbose print less verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrushforth committed Mar 18, 2021
1 parent 0448f80 commit d4d0f7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -155,7 +155,7 @@ boolean testLostStateAndReset() {

int hr = D3DResourceFactory.nTestCooperativeLevel(pContext);

if (PrismSettings.verbose && hr != D3D_OK) {
if (PrismSettings.verbose && FAILED(hr)) {
System.err.print("D3DContext::testLostStateAndReset : ");
switch (hr) {
case D3D_OK:
Expand Down
Expand Up @@ -183,7 +183,7 @@ private void reset(boolean unload) {
// Reinitialize pipeline
void reinitialize() {
if (PrismSettings.verbose) {
System.err.println("D3DPipeline: reinitialize after device lost");
System.err.println("D3DPipeline: reinitialize after device was removed");
}

// Device was removed, reset and reinitialize
Expand Down
Expand Up @@ -158,7 +158,7 @@ static Texture getGradientTexture(ShaderGraphics g, Gradient paint) {
}

// gradientCacheTexture is left permanent and locked, although we still
// must check for isSurfaceLost() is the case the device is disposed.
// must check for isSurfaceLost() in case the device is disposed.
// We add a lock here so that the caller can unlock without knowing
// our inner implementation details.
gradientCacheTexture.lock();
Expand All @@ -171,7 +171,7 @@ static Texture getWrapGradientTexture(ShaderGraphics g) {
}

// gtexCacheTexture is left permanent and locked, although we still
// must check for isSurfaceLost() is the case the device is disposed.
// must check for isSurfaceLost() in case the device is disposed.
// We add a lock here so that the caller can unlock without knowing
// our inner implementation details.
gtexCacheTexture.lock();
Expand Down

0 comments on commit d4d0f7d

Please sign in to comment.