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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
version.h
src/common/version.h
+1
-1
Context.cpp
src/libGLESv2/Context.cpp
+8
-7
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,18 +2436,14 @@ void Context::applyTextures(SamplerType type)
...
@@ -2436,18 +2436,14 @@ 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
(
d3dTexture
)
{
if
(
appliedTextureSerial
[
samplerIndex
]
!=
texSerial
||
texture
->
hasDirtyParameters
())
if
(
appliedTextureSerial
[
samplerIndex
]
!=
texSerial
||
texture
->
hasDirtyParameters
())
{
{
GLenum
wrapS
=
texture
->
getWrapS
();
GLenum
wrapS
=
texture
->
getWrapS
();
...
@@ -2476,6 +2472,11 @@ void Context::applyTextures(SamplerType type)
...
@@ -2476,6 +2472,11 @@ void Context::applyTextures(SamplerType type)
{
{
mDevice
->
SetTexture
(
d3dSampler
,
d3dTexture
);
mDevice
->
SetTexture
(
d3dSampler
,
d3dTexture
);
}
}
}
else
{
mDevice
->
SetTexture
(
d3dSampler
,
getIncompleteTexture
(
textureType
)
->
getTexture
());
}
appliedTextureSerial
[
samplerIndex
]
=
texSerial
;
appliedTextureSerial
[
samplerIndex
]
=
texSerial
;
texture
->
resetDirty
();
texture
->
resetDirty
();
...
...
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