OSDN Git Service

Refactor maximum texture dimensions.
authorNicolas Capens <capn@google.com>
Tue, 8 May 2018 20:03:16 +0000 (16:03 -0400)
committerNicolas Capens <nicolascapens@google.com>
Thu, 17 May 2018 21:03:02 +0000 (21:03 +0000)
commitefdf103a3db442f2c27423aa5db7e6803f275ae6
tree4fac2d0db31a870b1100acd9e2c6a6d4b5aedcfb
parent89c43d202302ec20e0d3b31d7273fed848b9ee23
Refactor maximum texture dimensions.

OpenGL has separate implementation-defined texture size limits, for
3D textures and array textures. For now just give them the same value.

Bug chromium:835299

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