Welcome,
Guest
. Please
login
or
register
.
June 12, 2025, 08:29:17 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
3.0.6f6 - UITexture drawcall not rendering correct texture
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: 3.0.6f6 - UITexture drawcall not rendering correct texture (Read 8752 times)
Asse
Jr. Member
Thank You
-Given: 0
-Receive: 0
Posts: 70
Re: 3.0.6f6 - UITexture drawcall not rendering correct texture
«
Reply #15 on:
December 03, 2013, 03:52:59 PM »
Thumbs up!
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: 3.0.6f6 - UITexture drawcall not rendering correct texture
«
Reply #16 on:
December 03, 2013, 06:12:46 PM »
Got the repro case, will fix it tonight. Thanks!
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: 3.0.6f6 - UITexture drawcall not rendering correct texture
«
Reply #17 on:
December 03, 2013, 09:32:13 PM »
Alright, here's the fix. Replace UIPanel.InsertWidget function with this:
static
public
UIDrawCall InsertWidget
(
UIWidget w
)
{
UIPanel p
=
w
.
panel
;
if
(
p
==
null
)
return
null
;
Material mat
=
w
.
material
;
Texture tex
=
w
.
mainTexture
;
int
depth
=
w
.
raycastDepth
;
BetterList
<
UIDrawCall
>
dcs
=
UIDrawCall
.
activeList
;
for
(
int
i
=
0
;
i
<
dcs
.
size
;
++
i
)
{
UIDrawCall dc
=
dcs
.
buffer
[
i
]
;
if
(
dc
.
manager
!=
p
)
continue
;
int
dcStart
=
(
i
==
0
)
?
int
.
MinValue
:
dcs
.
buffer
[
i
-
1
]
.
depthEnd
+
1
;
int
dcEnd
=
(
i
+
1
==
dcs
.
size
)
?
int
.
MaxValue
:
dcs
.
buffer
[
i
+
1
]
.
depthStart
-
1
;
if
(
dcStart
<=
depth
&&
dcEnd
>=
depth
)
{
if
(
dc
.
baseMaterial
==
mat
&&
dc
.
mainTexture
==
tex
)
{
if
(
w
.
isVisible
&&
w
.
hasVertices
)
{
w
.
drawCall
=
dc
;
dc
.
isDirty
=
true
;
return
dc
;
}
}
else
mRebuild
=
true
;
return
null
;
}
}
mRebuild
=
true
;
return
null
;
}
Logged
windsky527
Newbie
Thank You
-Given: 0
-Receive: 2
Posts: 11
Re: 3.0.6f6 - UITexture drawcall not rendering correct texture
«
Reply #18 on:
December 03, 2013, 10:24:13 PM »
yes.it's show right!,thanks!
Logged
Darkmax
Jr. Member
Thank You
-Given: 2
-Receive: 1
Posts: 93
Re: 3.0.6f6 - UITexture drawcall not rendering correct texture
«
Reply #19 on:
December 04, 2013, 02:57:24 AM »
yes, it seems that the fix is working.
Thanks ArenMook
Logged
Print
Pages:
1
[
2
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
3.0.6f6 - UITexture drawcall not rendering correct texture