diff options
author | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-15 00:05:28 +0000 |
---|---|---|
committer | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-15 00:05:28 +0000 |
commit | 4297f09429c220e8bcd68d7fa493a9ab7aa7ace7 (patch) | |
tree | 9b9279ca6e3051c75efcb5168086f38b3f208cfc /o3d/samples | |
parent | 1288ba0949c899dce33fc6fcc8e212aee704bc48 (diff) | |
download | chromium_src-4297f09429c220e8bcd68d7fa493a9ab7aa7ace7.zip chromium_src-4297f09429c220e8bcd68d7fa493a9ab7aa7ace7.tar.gz chromium_src-4297f09429c220e8bcd68d7fa493a9ab7aa7ace7.tar.bz2 |
Remove pack from calls to texture.getRenderSurface
as that has been deprecated.
Review URL: http://codereview.chromium.org/274042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/samples')
-rw-r--r-- | o3d/samples/beachdemo/beachdemo.js | 4 | ||||
-rw-r--r-- | o3d/samples/convolution.html | 2 | ||||
-rw-r--r-- | o3d/samples/render-targets.html | 2 | ||||
-rwxr-xr-x | o3d/samples/shadow-map.html | 2 | ||||
-rw-r--r-- | o3d/samples/sobel.html | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/o3d/samples/beachdemo/beachdemo.js b/o3d/samples/beachdemo/beachdemo.js index 54c0edd..7e01b1a 100644 --- a/o3d/samples/beachdemo/beachdemo.js +++ b/o3d/samples/beachdemo/beachdemo.js @@ -1880,12 +1880,12 @@ function setupRenderTargets() { g_renderTargetHeight, g_o3d.Texture.ARGB8, 1, true); - var reflectionSurface = g_reflectionTexture.getRenderSurface(0, g_mainPack); + var reflectionSurface = g_reflectionTexture.getRenderSurface(0); g_refractionTexture = g_mainPack.createTexture2D(g_renderTargetWidth, g_renderTargetHeight, g_o3d.Texture.XRGB8, 1, true); - var refractionSurface = g_refractionTexture.getRenderSurface(0, g_mainPack); + var refractionSurface = g_refractionTexture.getRenderSurface(0); g_depthSurface = g_mainPack.createDepthStencilSurface(g_renderTargetWidth, g_renderTargetHeight); diff --git a/o3d/samples/convolution.html b/o3d/samples/convolution.html index 5994a0c..cada227 100644 --- a/o3d/samples/convolution.html +++ b/o3d/samples/convolution.html @@ -233,7 +233,7 @@ function createConvolutionMaterial(viewInfo, kernelSize) { } function createRenderSurfaceSet(texture) { - var renderSurface = texture.getRenderSurface(0, g_pack); + var renderSurface = texture.getRenderSurface(0); // Create the depth-stencil buffer required when rendering this pass. var depthSurface = g_pack.createDepthStencilSurface(RENDER_TARGET_WIDTH, diff --git a/o3d/samples/render-targets.html b/o3d/samples/render-targets.html index 461ac4c..11abc0b 100644 --- a/o3d/samples/render-targets.html +++ b/o3d/samples/render-targets.html @@ -155,7 +155,7 @@ function initStep2(clientElements) { var texture2d = g_pack.createTexture2D(RENDER_TARGET_WIDTH, RENDER_TARGET_HEIGHT, g_o3d.Texture.XRGB8, 1, true); - var renderSurface = texture2d.getRenderSurface(0, g_pack); + var renderSurface = texture2d.getRenderSurface(0); // Create the depth-stencil buffer required when rendering the teapot. var depthSurface = g_pack.createDepthStencilSurface(RENDER_TARGET_WIDTH, diff --git a/o3d/samples/shadow-map.html b/o3d/samples/shadow-map.html index cecaeef..0035de6 100755 --- a/o3d/samples/shadow-map.html +++ b/o3d/samples/shadow-map.html @@ -168,7 +168,7 @@ function initRenderGraph() { g_o3d.Texture.ABGR32F, 1, true); - var renderSurface = g_shadowTexture.getRenderSurface(0, g_pack); + var renderSurface = g_shadowTexture.getRenderSurface(0); // Create the depth-stencil buffer required when rendering the teapot. var depthSurface = g_pack.createDepthStencilSurface(SHADOW_MAP_WIDTH, diff --git a/o3d/samples/sobel.html b/o3d/samples/sobel.html index 90242bc..9f5576b 100644 --- a/o3d/samples/sobel.html +++ b/o3d/samples/sobel.html @@ -182,7 +182,7 @@ function createSobelMaterial(viewInfo, kernelSize) { } function createRenderSurfaceSet(texture) { - var renderSurface = texture.getRenderSurface(0, g_pack); + var renderSurface = texture.getRenderSurface(0); // Create the depth-stencil buffer required when rendering this pass. var depthSurface = g_pack.createDepthStencilSurface(RENDER_TARGET_WIDTH, |