Testing maybe disasterous change that releases image data after loaded. Might break display

This commit is contained in:
Matt McWilliams 2024-10-22 17:07:24 -04:00
parent c646be9534
commit 95158f96e6
1 changed files with 2 additions and 0 deletions

View File

@ -122,6 +122,7 @@ uint64_t actionLoad () {
GL_RGB, // Input image format (i.e. GL_RGB, GL_RGBA, GL_BGR etc.)
GL_UNSIGNED_BYTE, // Image data type
image.ptr()); // The actual image data itself
image.release();
auto localCurrentTime = steady_clock::now();
auto localElapsedTime = duration_cast<milliseconds>(localCurrentTime - localStartTime).count();
cout << "{ \"load_time\" : " << localElapsedTime << " }" << endl;
@ -148,6 +149,7 @@ void loadBlank () {
GL_RGB, // Input image format (i.e. GL_RGB, GL_RGBA, GL_BGR etc.)
GL_UNSIGNED_BYTE, // Image data type
blank.ptr()); // The actual image data itself
blank.release();
}
void initImageTexture() {