OSDN Git Service

Ignore glGenerateMipmap for unspecified or zero-sized textures.
authorNicolas Capens <capn@google.com>
Tue, 15 May 2018 20:31:10 +0000 (16:31 -0400)
committerNicolas Capens <nicolascapens@google.com>
Wed, 16 May 2018 20:44:10 +0000 (20:44 +0000)
commit89c43d202302ec20e0d3b31d7273fed848b9ee23
tree8551ab7a3b66e434d310b5e7b25770a98d5ff5ba
parentc8403ec14aaf86e8e62b4284aaec3e1e2f5fa5fc
Ignore glGenerateMipmap for unspecified or zero-sized textures.

https://gitlab.khronos.org/opengl/API/issues/72 was resolved to treat
these cases as a no-op and not generate an error.

Bug chromium:825545

Change-Id: Ic4cfbc728156bb88a6dc70486ae57c3e12ea43ae
Reviewed-on: https://swiftshader-review.googlesource.com/18870
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
src/OpenGL/libGLESv2/Texture.cpp
src/OpenGL/libGLESv2/utilities.cpp