Remove debug

This commit is contained in:
Isaac Connor 2020-07-16 15:34:29 -04:00
parent 9e06385f26
commit c2a025300f
1 changed files with 4 additions and 2 deletions

View File

@ -572,7 +572,9 @@ uint8_t* Image::WriteBuffer(const unsigned int p_width, const unsigned int p_hei
return buffer; return buffer;
} }
/* Assign an existing buffer to the image instead of copying from a source buffer. The goal is to reduce the amount of memory copying and increase efficiency and buffer reusing. */ /* Assign an existing buffer to the image instead of copying from a source buffer.
The goal is to reduce the amount of memory copying and increase efficiency and buffer reusing.
*/
void Image::AssignDirect( void Image::AssignDirect(
const unsigned int p_width, const unsigned int p_width,
const unsigned int p_height, const unsigned int p_height,
@ -581,6 +583,7 @@ void Image::AssignDirect(
uint8_t *new_buffer, uint8_t *new_buffer,
const size_t buffer_size, const size_t buffer_size,
const int p_buffertype) { const int p_buffertype) {
if ( new_buffer == NULL ) { if ( new_buffer == NULL ) {
Error("Attempt to directly assign buffer from a NULL pointer"); Error("Attempt to directly assign buffer from a NULL pointer");
return; return;
@ -640,7 +643,6 @@ void Image::AssignDirect(
buffertype = p_buffertype; buffertype = p_buffertype;
buffer = new_buffer; buffer = new_buffer;
} }
Debug(1, "In assign direct");
} }
void Image::Assign(const unsigned int p_width, const unsigned int p_height, const unsigned int p_colours, const unsigned int p_subpixelorder, const uint8_t* new_buffer, const size_t buffer_size) { void Image::Assign(const unsigned int p_width, const unsigned int p_height, const unsigned int p_colours, const unsigned int p_subpixelorder, const uint8_t* new_buffer, const size_t buffer_size) {