Move Mat blank to global variable, may have been creating 2 per frame
This commit is contained in:
parent
1f1c9e2aff
commit
b17840c8de
|
@ -38,6 +38,7 @@ GLint screenHeight = 0;
|
|||
Image img;
|
||||
State state;
|
||||
Mat image;
|
||||
Mat blank;
|
||||
|
||||
uint64_t exposureTime = 0;
|
||||
uint64_t exposureElapsedTime = 0;
|
||||
|
@ -129,7 +130,7 @@ uint64_t actionLoad () {
|
|||
}
|
||||
|
||||
void loadBlank () {
|
||||
Mat blank = img.getBlank();
|
||||
blank = img.getBlank();
|
||||
glGenTextures(1, &blankTexture);
|
||||
glBindTexture(GL_TEXTURE_2D, blankTexture);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||
|
|
Loading…
Reference in New Issue