fix(pets): use preferWebGLVersion:1 for cat canvas to avoid context conflicts

Cat gets its own canvas with WebGL1 context (Kira uses WebGL2 by default).
Different GL versions don't share buffers, so no bindBuffer spam.
Cat now renders in the PetZone section of the right sidebar where it belongs.
Removed all shared-context onAppReady plumbing.
This commit is contained in:
2026-06-05 13:25:10 -04:00
parent 1f8bcf6b4f
commit 43a392e5f5
4 changed files with 47 additions and 43 deletions
-2
View File
@@ -7,7 +7,6 @@ interface Props {
outfit: string;
accessory: string | null;
onTalkToggle: () => void;
onAppReady?: (app: any) => void;
}
type ExpressionName = 'Normal' | 'Smile' | 'Sad' | 'Angry' | 'Surprised' | 'Blushing';
@@ -83,7 +82,6 @@ export default function KiraAvatar(props: Props) {
app.stage.addChild(model as any);
(model as any).isInteractive = () => false;
if (!mounted) return;
if (props.onAppReady) props.onAppReady(app);
try {
textureRef.current = {