Skip to content

Commit 88f44d0

Browse files
committed
CpuTextureManager: Use QOpenGLFunctions for glReadPixels
1 parent 37b90e7 commit 88f44d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cputexturemanager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ bool CpuTextureManager::addTexture(const Texture &texture)
7777

7878
// Read pixels
7979
GLubyte *pixels = new GLubyte[width * height * 4]; // 4 channels (RGBA)
80-
glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
80+
glF.glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
8181

8282
// Flip vertically
8383
int rowSize = width * 4;

0 commit comments

Comments
 (0)