Index: Source/WebCore/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp |
=================================================================== |
--- Source/WebCore/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp (revision 95971) |
+++ Source/WebCore/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp (working copy) |
@@ -260,7 +260,7 @@ |
return notHandledByInterceptor(); |
} |
WebGLProgram* program = V8WebGLProgram::HasInstance(args[0]) ? V8WebGLProgram::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0; |
- Vector<WebGLShader*> shaders; |
+ Vector<RefPtr<WebGLShader> > shaders; |
bool succeed = context->getAttachedShaders(program, shaders, ec); |
if (ec) { |
V8Proxy::setDOMException(ec); |
@@ -270,7 +270,7 @@ |
return v8::Null(); |
v8::Local<v8::Array> array = v8::Array::New(shaders.size()); |
for (size_t ii = 0; ii < shaders.size(); ++ii) |
- array->Set(v8::Integer::New(ii), toV8(shaders[ii])); |
+ array->Set(v8::Integer::New(ii), toV8(shaders[ii].get())); |
return array; |
} |