Skip to content

Commit

Permalink
Waveform rendering shader: fixed bug where if the start of a pixel wa…
Browse files Browse the repository at this point in the history
…s offscreen, the shader would fail to terminate correctly
  • Loading branch information
azonenberg committed Jun 9, 2023
1 parent 62511d1 commit 2f4cf45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ngscopeclient/shaders/waveform-compute.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* *
* glscopeclient *
* *
* Copyright (c) 2012-2022 Andrew D. Zonenberg *
* Copyright (c) 2012-2023 Andrew D. Zonenberg *
* All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the *
Expand Down Expand Up @@ -343,13 +343,13 @@ void main()
g_blockmin[gl_LocalInvocationID.y] = int(min(starty, endy));
g_blockmax[gl_LocalInvocationID.y] = int(max(starty, endy));
}

//Check if we're at the end of the pixel
if(right.x > gl_GlobalInvocationID.x + 1)
g_done = true;
}
else
g_updating[gl_LocalInvocationID.y] = false;

//Check if we're at the end of the pixel
if(right.x > gl_GlobalInvocationID.x + 1)
g_done = true;
}

else
Expand Down

0 comments on commit 2f4cf45

Please sign in to comment.