mirror of https://github.com/commaai/openpilot.git
EGLImageTexture: pass nullptr to glTexImage2d in last argument (#22844)
old-commit-hash: b0f9365295
This commit is contained in:
parent
efcd62fe86
commit
2bbceb0b29
|
@ -53,7 +53,7 @@ EGLImageTexture::~EGLImageTexture() {
|
|||
EGLImageTexture::EGLImageTexture(const VisionBuf *buf) {
|
||||
glGenTextures(1, &frame_tex);
|
||||
glBindTexture(GL_TEXTURE_2D, frame_tex);
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, buf->width, buf->height, 0, GL_RGB, GL_UNSIGNED_BYTE, buf->addr);
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, buf->width, buf->height, 0, GL_RGB, GL_UNSIGNED_BYTE, nullptr);
|
||||
glGenerateMipmap(GL_TEXTURE_2D);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue