Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
8832c8fe
Commit
8832c8fe
authored
May 29, 2013
by
vangelis@chromium.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert r2250 from chrome_m27 branch
git-svn-id:
https://angleproject.googlecode.com/svn/branches/chrome_m27@2251
736b8ea6-26fd-11df-bfd4-992fa37f6226
parent
a2645624
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
30 deletions
+36
-30
version.h
src/common/version.h
+1
-1
Context.cpp
src/libGLESv2/Context.cpp
+30
-29
Texture.cpp
src/libGLESv2/Texture.cpp
+5
-0
No files found.
src/common/version.h
View file @
8832c8fe
#define MAJOR_VERSION 1
#define MAJOR_VERSION 1
#define MINOR_VERSION 0
#define MINOR_VERSION 0
#define BUILD_VERSION 0
#define BUILD_VERSION 0
#define BUILD_REVISION 2
250
#define BUILD_REVISION 2
042
#define STRINGIFY(x) #x
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
#define MACRO_STRINGIFY(x) STRINGIFY(x)
...
...
src/libGLESv2/Context.cpp
View file @
8832c8fe
//
//
// Copyright (c) 2002-201
3
The ANGLE Project Authors. All rights reserved.
// Copyright (c) 2002-201
2
The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
//
//
...
@@ -2436,45 +2436,46 @@ void Context::applyTextures(SamplerType type)
...
@@ -2436,45 +2436,46 @@ void Context::applyTextures(SamplerType type)
TextureType
textureType
=
programBinary
->
getSamplerTextureType
(
type
,
samplerIndex
);
TextureType
textureType
=
programBinary
->
getSamplerTextureType
(
type
,
samplerIndex
);
Texture
*
texture
=
getSamplerTexture
(
textureUnit
,
textureType
);
Texture
*
texture
=
getSamplerTexture
(
textureUnit
,
textureType
);
if
(
!
texture
->
isSamplerComplete
())
{
texture
=
getIncompleteTexture
(
textureType
);
}
unsigned
int
texSerial
=
texture
->
getTextureSerial
();
unsigned
int
texSerial
=
texture
->
getTextureSerial
();
if
(
appliedTextureSerial
[
samplerIndex
]
!=
texSerial
||
texture
->
hasDirtyParameters
()
||
texture
->
hasDirtyImages
())
if
(
appliedTextureSerial
[
samplerIndex
]
!=
texSerial
||
texture
->
hasDirtyParameters
()
||
texture
->
hasDirtyImages
())
{
{
IDirect3DBaseTexture9
*
d3dTexture
=
texture
->
getTexture
();
IDirect3DBaseTexture9
*
d3dTexture
=
texture
->
getTexture
();
if
(
appliedTextureSerial
[
samplerIndex
]
!=
texSerial
||
texture
->
hasDirtyParameters
()
)
if
(
d3dTexture
)
{
{
GLenum
wrapS
=
texture
->
getWrapS
();
if
(
appliedTextureSerial
[
samplerIndex
]
!=
texSerial
||
texture
->
hasDirtyParameters
())
GLenum
wrapT
=
texture
->
getWrapT
();
GLenum
minFilter
=
texture
->
getMinFilter
();
GLenum
magFilter
=
texture
->
getMagFilter
();
float
maxAnisotropy
=
texture
->
getMaxAnisotropy
();
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_ADDRESSU
,
es2dx
::
ConvertTextureWrap
(
wrapS
));
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_ADDRESSV
,
es2dx
::
ConvertTextureWrap
(
wrapT
));
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_MAGFILTER
,
es2dx
::
ConvertMagFilter
(
magFilter
,
maxAnisotropy
));
D3DTEXTUREFILTERTYPE
d3dMinFilter
,
d3dMipFilter
;
es2dx
::
ConvertMinFilter
(
minFilter
,
&
d3dMinFilter
,
&
d3dMipFilter
,
maxAnisotropy
);
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_MINFILTER
,
d3dMinFilter
);
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_MIPFILTER
,
d3dMipFilter
);
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_MAXMIPLEVEL
,
texture
->
getLodOffset
());
if
(
supportsTextureFilterAnisotropy
())
{
{
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_MAXANISOTROPY
,
(
DWORD
)
maxAnisotropy
);
GLenum
wrapS
=
texture
->
getWrapS
();
GLenum
wrapT
=
texture
->
getWrapT
();
GLenum
minFilter
=
texture
->
getMinFilter
();
GLenum
magFilter
=
texture
->
getMagFilter
();
float
maxAnisotropy
=
texture
->
getMaxAnisotropy
();
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_ADDRESSU
,
es2dx
::
ConvertTextureWrap
(
wrapS
));
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_ADDRESSV
,
es2dx
::
ConvertTextureWrap
(
wrapT
));
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_MAGFILTER
,
es2dx
::
ConvertMagFilter
(
magFilter
,
maxAnisotropy
));
D3DTEXTUREFILTERTYPE
d3dMinFilter
,
d3dMipFilter
;
es2dx
::
ConvertMinFilter
(
minFilter
,
&
d3dMinFilter
,
&
d3dMipFilter
,
maxAnisotropy
);
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_MINFILTER
,
d3dMinFilter
);
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_MIPFILTER
,
d3dMipFilter
);
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_MAXMIPLEVEL
,
texture
->
getLodOffset
());
if
(
supportsTextureFilterAnisotropy
())
{
mDevice
->
SetSamplerState
(
d3dSampler
,
D3DSAMP_MAXANISOTROPY
,
(
DWORD
)
maxAnisotropy
);
}
}
}
}
if
(
appliedTextureSerial
[
samplerIndex
]
!=
texSerial
||
texture
->
hasDirtyImages
())
if
(
appliedTextureSerial
[
samplerIndex
]
!=
texSerial
||
texture
->
hasDirtyImages
())
{
mDevice
->
SetTexture
(
d3dSampler
,
d3dTexture
);
}
}
else
{
{
mDevice
->
SetTexture
(
d3dSampler
,
d3dTexture
);
mDevice
->
SetTexture
(
d3dSampler
,
getIncompleteTexture
(
textureType
)
->
getTexture
()
);
}
}
appliedTextureSerial
[
samplerIndex
]
=
texSerial
;
appliedTextureSerial
[
samplerIndex
]
=
texSerial
;
...
...
src/libGLESv2/Texture.cpp
View file @
8832c8fe
...
@@ -1535,6 +1535,11 @@ bool Texture::subImageCompressed(GLint xoffset, GLint yoffset, GLsizei width, GL
...
@@ -1535,6 +1535,11 @@ bool Texture::subImageCompressed(GLint xoffset, GLint yoffset, GLsizei width, GL
IDirect3DBaseTexture9
*
Texture
::
getTexture
()
IDirect3DBaseTexture9
*
Texture
::
getTexture
()
{
{
if
(
!
isSamplerComplete
())
{
return
NULL
;
}
// ensure the underlying texture is created
// ensure the underlying texture is created
if
(
getStorage
(
false
)
==
NULL
)
if
(
getStorage
(
false
)
==
NULL
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment