Skip to content

Commit

Permalink
updated OpenGL display test
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed Jun 18, 2020
1 parent 7a81320 commit 6499952
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions display/gl-display-test/gl-display-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ int main( int argc, char** argv )
str, 0, 36, make_float4(255.0f, 190.0f, 0.0f, 255.0f));

// rescale image pixel intensities for display
CUDA(cudaNormalizeRGBA((float4*)textureCUDA, make_float2(0.0f, 255.0f),
(float4*)textureCUDA, make_float2(0.0f, 1.0f),
texture->GetWidth(), texture->GetHeight()));
CUDA(cudaNormalize((float4*)textureCUDA, make_float2(0.0f, 255.0f),
(float4*)textureCUDA, make_float2(0.0f, 1.0f),
texture->GetWidth(), texture->GetHeight()));

texture->Unmap();
}
Expand Down

0 comments on commit 6499952

Please sign in to comment.