Set C standard to C11 and add new assets
Changed CMakeLists.txt to set the C standard to C11. Added multiple binary image files for new visual assets. Added several new image files to enhance rendering capabilities. Changed stb_image.h to improve support for various image formats. Changed ray tracing engine to enhance ray creation and intersection. Changed triangle structure to use a vertex array for better attribute handling. Changed scene initialization to accommodate new texture management.
This commit is contained in:
@@ -76,9 +76,8 @@ unsigned char* render_target_to_char(render_target_t* render_target)
|
||||
|
||||
void render_target_free(render_target_t* target)
|
||||
{
|
||||
if (target->buffer != NULL)
|
||||
if (target != NULL && target->buffer != NULL)
|
||||
{
|
||||
free(target->buffer);
|
||||
target->buffer = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user