forked from KolibriOS/kolibrios
fix in glClearColor
git-svn-id: svn://kolibrios.org@5163 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
dbfaa9d5ab
commit
11b3a68203
@ -7,6 +7,7 @@ proc glopClearColor uses ecx esi edi, context:dword, p:dword
|
|||||||
add edi,offs_cont_clear_color
|
add edi,offs_cont_clear_color
|
||||||
mov ecx,4
|
mov ecx,4
|
||||||
rep movsd
|
rep movsd
|
||||||
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
align 4
|
align 4
|
||||||
@ -18,18 +19,22 @@ proc glopClearDepth uses eax ebx, context:dword, p:dword
|
|||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
|
align 4
|
||||||
|
fl_65535 dd 65535.0
|
||||||
|
|
||||||
align 4
|
align 4
|
||||||
proc glopClear uses eax ebx, context:dword, p:dword
|
proc glopClear uses eax ebx, context:dword, p:dword
|
||||||
mov eax,[context]
|
mov eax,[context]
|
||||||
mov ebx,[eax+offs_cont_clear_color+8] ;context.clear_color.v[2]
|
fld dword[eax+offs_cont_clear_color+8] ;context.clear_color.v[2]
|
||||||
shl ebx,16
|
fmul dword[fl_65535]
|
||||||
push ebx
|
fistp dword[esp-4]
|
||||||
mov ebx,[eax+offs_cont_clear_color+4] ;context.clear_color.v[1]
|
fld dword[eax+offs_cont_clear_color+4] ;context.clear_color.v[1]
|
||||||
shl ebx,16
|
fmul dword[fl_65535]
|
||||||
push ebx
|
fistp dword[esp-8]
|
||||||
mov ebx,[eax+offs_cont_clear_color] ;context.clear_color.v[0]
|
fld dword[eax+offs_cont_clear_color] ;context.clear_color.v[0]
|
||||||
shl ebx,16
|
fmul dword[fl_65535]
|
||||||
push ebx
|
fistp dword[esp-12]
|
||||||
|
sub esp,12
|
||||||
|
|
||||||
mov ebx,[p]
|
mov ebx,[p]
|
||||||
mov ebx,[ebx+4] ;ebx = p[1]
|
mov ebx,[ebx+4] ;ebx = p[1]
|
||||||
|
@ -26,6 +26,7 @@ start:
|
|||||||
|
|
||||||
stdcall [kosglMakeCurrent], 10,10,300,225,ctx1
|
stdcall [kosglMakeCurrent], 10,10,300,225,ctx1
|
||||||
stdcall [glEnable], GL_DEPTH_TEST
|
stdcall [glEnable], GL_DEPTH_TEST
|
||||||
|
stdcall [glClearColor], 0.2,0.0,0.2,0.0
|
||||||
|
|
||||||
call draw_3d
|
call draw_3d
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user