mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 21:58:06 +00:00
Bug 1265676 - Fix other callsites. - r=ethlin
MozReview-Commit-ID: EgLMZajmRnD
This commit is contained in:
parent
2209015dd1
commit
381a9f281a
@ -2218,7 +2218,7 @@ ZeroTextureData(WebGLContext* webgl, const char* funcName, bool respecifyTexture
|
||||
const auto driverUnpackInfo = usage->idealUnpack;
|
||||
MOZ_RELEASE_ASSERT(driverUnpackInfo, "GFX: ideal unpack info not set.");
|
||||
|
||||
if (usage->isRenderable && depth == 1 &&
|
||||
if (usage->IsRenderable() && depth == 1 &&
|
||||
!xOffset && !yOffset && !zOffset)
|
||||
{
|
||||
// While we would like to skip the extra complexity of trying to zero with an FB
|
||||
|
@ -24,7 +24,7 @@ WebGLExtensionColorBufferFloat::WebGLExtensionColorBufferFloat(WebGLContext* web
|
||||
|
||||
auto fnUpdateUsage = [&fua](GLenum sizedFormat, webgl::EffectiveFormat effFormat) {
|
||||
auto usage = fua->EditUsage(effFormat);
|
||||
usage->isRenderable = true;
|
||||
usage->SetRenderable();
|
||||
fua->AllowRBFormat(sizedFormat, usage);
|
||||
};
|
||||
|
||||
|
@ -24,7 +24,7 @@ WebGLExtensionColorBufferHalfFloat::WebGLExtensionColorBufferHalfFloat(WebGLCont
|
||||
|
||||
auto fnUpdateUsage = [&fua](GLenum sizedFormat, webgl::EffectiveFormat effFormat) {
|
||||
auto usage = fua->EditUsage(effFormat);
|
||||
usage->isRenderable = true;
|
||||
usage->SetRenderable();
|
||||
fua->AllowRBFormat(sizedFormat, usage);
|
||||
};
|
||||
|
||||
|
@ -19,7 +19,7 @@ WebGLExtensionDepthTexture::WebGLExtensionDepthTexture(WebGLContext* webgl)
|
||||
GLenum unpackType)
|
||||
{
|
||||
auto usage = fua->EditUsage(effFormat);
|
||||
usage->isRenderable = true;
|
||||
usage->SetRenderable();
|
||||
|
||||
const webgl::PackingInfo pi = {unpackFormat, unpackType};
|
||||
const webgl::DriverUnpackInfo dui = {unpackFormat, unpackFormat, unpackType};
|
||||
|
@ -20,7 +20,7 @@ WebGLExtensionEXTColorBufferFloat::WebGLExtensionEXTColorBufferFloat(WebGLContex
|
||||
|
||||
auto fnUpdateUsage = [&fua](GLenum sizedFormat, webgl::EffectiveFormat effFormat) {
|
||||
auto usage = fua->EditUsage(effFormat);
|
||||
usage->isRenderable = true;
|
||||
usage->SetRenderable();
|
||||
fua->AllowRBFormat(sizedFormat, usage);
|
||||
};
|
||||
|
||||
|
@ -49,7 +49,7 @@ WebGLExtensionSRGB::WebGLExtensionSRGB(WebGLContext* webgl)
|
||||
fnAdd(webgl::EffectiveFormat::SRGB8_ALPHA8, LOCAL_GL_SRGB_ALPHA, LOCAL_GL_RGBA);
|
||||
|
||||
auto usage = fua->EditUsage(webgl::EffectiveFormat::SRGB8_ALPHA8);
|
||||
usage->isRenderable = true;
|
||||
usage->SetRenderable();
|
||||
fua->AllowRBFormat(LOCAL_GL_SRGB8_ALPHA8, usage);
|
||||
}
|
||||
|
||||
|
@ -278,7 +278,7 @@ WebGLFBAttachPoint::IsComplete(WebGLContext* webgl, nsCString* const out_info) c
|
||||
}
|
||||
|
||||
const auto formatUsage = Format();
|
||||
if (!formatUsage->isRenderable) {
|
||||
if (!formatUsage->IsRenderable()) {
|
||||
nsAutoCString attachName;
|
||||
AttachmentName(&attachName);
|
||||
|
||||
|
@ -748,7 +748,7 @@ WebGLTexture::GenerateMipmap(TexTarget texTarget)
|
||||
// texture-filterable according to table 3.13, an INVALID_OPERATION error
|
||||
// is generated.
|
||||
const auto usage = baseImageInfo.mFormat;
|
||||
bool canGenerateMipmap = (usage->isRenderable && usage->isFilterable);
|
||||
bool canGenerateMipmap = (usage->IsRenderable() && usage->isFilterable);
|
||||
switch (usage->format->effectiveFormat) {
|
||||
case webgl::EffectiveFormat::Luminance8:
|
||||
case webgl::EffectiveFormat::Alpha8:
|
||||
|
Loading…
x
Reference in New Issue
Block a user