EGLImageTexture: pass nullptr to glTexImage2d in last argument (#22844)

old-commit-hash: b0f9365295
commatwo_master
Dean Lee 4 years ago committed by GitHub
parent efcd62fe86
commit 2bbceb0b29
  1. 2
      selfdrive/common/visionimg.cc

@ -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…
Cancel
Save