Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5353 → Rev 5269

/programs/develop/libraries/TinyGL/asm_fork/vertex.asm
1,6 → 1,3
if DEBUG
f_vt db ' gl_vertex_transform',0
end if
 
align 4
proc glopNormal uses ecx esi edi, context:dword, p:dword
120,7 → 117,7
locals
tmp M4
endl
;assert(context.in_begin == 0)
; assert(c->in_begin == 0);
 
mov edx,[context]
mov ebx,[p]
140,7 → 137,7
end if
; precompute inverse modelview
mov ebx,ebp
sub ebx,sizeof.M4
sub ebx,64
stdcall gl_M4_Inv, ebx,dword[edx+offs_cont_matrix_stack_ptr]
if DEBUG ;tmp
stdcall dbg_print,txt_sp,txt_nl
168,21 → 165,18
fcomp st1
fstsw ax
sahf
jne @f
jne .end_if_0
fld dword[ecx+13*4]
fcomp st1
fstsw ax
sahf
jne @f
jne .end_if_0
fld dword[ecx+14*4]
fcomp st1
fstsw ax
sahf
jne @f
jne .end_if_0
mov dword[edx+offs_cont_matrix_model_projection_no_w_transform],1
@@:
ffree st0 ;0.0
fincstp
.end_if_0:
 
; test if the texture matrix is not Identity