FIXED: 2019.19160 Win 10 - c++ TOP (cuda) plugin - topInput->pixelFormat not refreshing?

Hello,

in the execute() function I’m checking for the input format and display an error if different than expected, however it seems once the error has been displayed, even with the correct input format the only way to get rid of the error is to unload and reload the plugin.

This plugin : https://github.com/vinz9/CudaSortTOP

Code in CudaSortTOP.cpp

	if (topInput->pixelFormat != GL_RGBA16F && topInput->pixelFormat != GL_RGBA32F) {
		myError = "Input Texture must be 16-bit float (RGBA) or 32-bit float (RGBA).";
		return;
	}

See this video : https://drive.google.com/open?id=1GDrdjETbriNkX4pzswZ712XE8nPYq-lt
(created with included sample Toe)

Let me know if you can reproduce, thank you!

Just guessing, what happens if you set myError to null at the top of the execute function?

Hey David,

Good call, that did the trick! I thought it was reset every loop but I guess not.
Would be nice to have it with a comment in the c++ samples.

Thanks for the report. The examples will reset myError in the next builds we post.

1 Like