pex-gl / pex-context

Modern WebGL state wrapper for PEX: allocate GPU resources (textures, buffers), setup state pipelines and passes, and combine them into commands.
http://pex-gl.github.io/pex-context/
MIT License
160 stars 12 forks source link

Add support for mipmap generation on update #25

Closed nicknikolov closed 6 years ago

nicknikolov commented 6 years ago

Currently we need two update calls to make it work

    ctx.update(texture.value, {
      data: textureImage,
      flipY: false,
      min: ctx.Filter.LinearMipmapLinear
      //mipmap: true,
    })
    ctx.update(texture.value, {
      mipmap: true
    })
vorg commented 6 years ago

Fixed in https://github.com/pex-gl/pex-context/commit/b388afec415e2e340178474ca5ef98e633b713cf