mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 02:40:11 +01:00
st/mesa: updated comment
This commit is contained in:
parent
a12614362a
commit
4b7812919a
1 changed files with 5 additions and 4 deletions
|
|
@ -312,10 +312,11 @@ guess_and_alloc_texture(struct st_context *st,
|
|||
* the level=0 mipmap image.
|
||||
*/
|
||||
|
||||
/* Guess a reasonable value for lastLevel. This is probably going
|
||||
* to be wrong fairly often and might mean that we have to look at
|
||||
* resizable buffers, or require that buffers implement lazy
|
||||
* pagetable arrangements.
|
||||
/* Guess a reasonable value for lastLevel. With OpenGL we have no
|
||||
* idea how many mipmap levels will be in a texture until we start
|
||||
* to render with it. Make an educated guess here but be prepared
|
||||
* to re-allocating a texture buffer with space for more (or fewer)
|
||||
* mipmap levels later.
|
||||
*/
|
||||
if ((stObj->base.MinFilter == GL_NEAREST ||
|
||||
stObj->base.MinFilter == GL_LINEAR ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue