Error in simpleTexture[Drv] example?


103:    float* h_data = NULL;


108:    CUT_SAFE_CALL( cutLoadPGMf(image_path, &h_data, &width, &height));


215:    free(h_data);


   //! @note If a NULL pointer is passed to this function and it is 

    //!       initialized  withing Cutil then cutFree() has to be used to

    //!       deallocate the memory

Maybe there should be cutFree instead of free?

With free sometimes I’ve got a stack corruption.

That same problem is in simpleTexture sample.

Yes, it’s a bug and has been noted on these forums before. I also ran into it when basing a project on the simpleTexture sample project

Sorry, I missed that thread: