max texture value check