apply texture size -> 8,...,4096

git-svn-id: svn://kolibrios.org@6243 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
IgorA
2016-02-17 21:33:10 +00:00
parent d4aeb26207
commit 465434cb12
7 changed files with 156 additions and 121 deletions

View File

@@ -243,4 +243,21 @@ align 4
jnz .cycyle_0
popad
ret
endp
align 4
proc gl_getPervPowerOfTwo uses ebx, n:dword
mov ebx,[n]
mov eax,(1 shl ZB_POINT_TEXEL_SIZE) ;max size
cmp ebx,eax
jge .set
@@:
shr eax,1
cmp ebx,eax
jl @b
cmp eax,8 ;min size
jge .set
mov eax,8
.set:
ret
endp